<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Tekdaqc Firmware: Tekdaqc_CommandInterpreter.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customstyle.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tekdaqc Firmware
   &#160;<span id="projectnumber">1.0.2.0</span>
   </div>
   <div id="projectbrief">The firmware of the Tekdaqc.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_tekdaqc___command_interpreter_8c_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Tekdaqc_CommandInterpreter.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_tekdaqc___command_interpreter_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright 2013 Tenkiv, Inc.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * the License. You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * specific language governing permissions and limitations under the License.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* INCLUDES */</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___debug_8h.html">Tekdaqc_Debug.h</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___command_interpreter_8h.html">Tekdaqc_CommandInterpreter.h</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_a_d_c___state_machine_8h.html">ADC_StateMachine.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_d_i___state_machine_8h.html">DI_StateMachine.h</a>&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_d_o___state_machine_8h.html">DO_StateMachine.h</a>&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_analog___input_8h.html">Analog_Input.h</a>&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_digital___input_8h.html">Digital_Input.h</a>&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_digital___output_8h.html">Digital_Output.h</a>&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_telnet_server_8h.html">TelnetServer.h</a>&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_a_d_s1256___driver_8h.html">ADS1256_Driver.h</a>&quot;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___calibration_8h.html">Tekdaqc_Calibration.h</a>&quot;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_command_state_8h.html">CommandState.h</a>&quot;</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___b_s_p_8h.html">Tekdaqc_BSP.h</a>&quot;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___error_8h.html">Tekdaqc_Error.h</a>&quot;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="boolean_8h.html">boolean.h</a>&quot;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tekdaqc___locator_8h.html">Tekdaqc_Locator.h</a>&quot;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#ifdef PRINTF_OUTPUT</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">/* PRIVATE DEFINES */</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#a92a0c7db7d0fa06d4a7b5607b58b8e22">   63</a></span>&#160;<span class="preprocessor">#define ALL_CHANNELS_STRING             &quot;ALL&quot;</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#a417605542fbbdc39d9efb5fbdc15ecce">   70</a></span>&#160;<span class="preprocessor">#define KEY_VALUE_PAIR_FLAG             &quot;--&quot;</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#aab062553184015b4b1b1d7f2280f60ff">   77</a></span>&#160;<span class="preprocessor">#define RANGE_DELIMETER                 &#39;-&#39;</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#a822883911d1571e6b8b772d62a68cc7f">   84</a></span>&#160;<span class="preprocessor">#define SET_DELIMETER                   &#39;,&#39;</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#a0e6c06793de5eedf6ca83f03ba746cb7">   91</a></span>&#160;<span class="preprocessor">#define KEY_VALUE_PAIR_DELIMETER        &quot;=&quot;</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">/* PRIVATE VARIABLES */</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> COMMAND_DELIMETER[] = {0x20, 0x00};</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* COMMAND_STRINGS[<a class="code" href="group__command__interpreter.html#gadef3034178d2e2de064a8709350e8f01">NUM_COMMANDS</a>] = {<span class="stringliteral">&quot;LIST_ANALOG_INPUTS&quot;</span>, <span class="stringliteral">&quot;READ_ADC_REGISTERS&quot;</span>, <span class="stringliteral">&quot;READ_ANALOG_INPUT&quot;</span>,</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="stringliteral">&quot;ADD_ANALOG_INPUT&quot;</span>, <span class="stringliteral">&quot;REMOVE_ANALOG_INPUT&quot;</span>, <span class="stringliteral">&quot;CHECK_ANALOG_INPUT&quot;</span>, <span class="stringliteral">&quot;SYSTEM_GCAL&quot;</span>, <span class="stringliteral">&quot;SYSTEM_CAL&quot;</span>,</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <span class="stringliteral">&quot;LIST_DIGITAL_INPUTS&quot;</span>, <span class="stringliteral">&quot;READ_DIGITAL_INPUT&quot;</span>, <span class="stringliteral">&quot;ADD_DIGITAL_INPUT&quot;</span>, <span class="stringliteral">&quot;REMOVE_DIGITAL_INPUT&quot;</span>,</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="stringliteral">&quot;LIST_DIGITAL_OUTPUTS&quot;</span>, <span class="stringliteral">&quot;SET_DIGITAL_OUTPUT&quot;</span>, <span class="stringliteral">&quot;READ_DIGITAL_OUTPUT&quot;</span>, <span class="stringliteral">&quot;ADD_DIGITAL_OUTPUT&quot;</span>,</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="stringliteral">&quot;REMOVE_DIGITAL_OUTPUT&quot;</span>, <span class="stringliteral">&quot;CLEAR_DIG_OUTPUT_FAULT&quot;</span>, <span class="stringliteral">&quot;DISCONNECT&quot;</span>, <span class="stringliteral">&quot;UPGRADE&quot;</span>, <span class="stringliteral">&quot;IDENTIFY&quot;</span>, <span class="stringliteral">&quot;SAMPLE&quot;</span>, <span class="stringliteral">&quot;HALT&quot;</span>,</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="stringliteral">&quot;SET_RTC&quot;</span>, <span class="stringliteral">&quot;SET_USER_MAC&quot;</span>, <span class="stringliteral">&quot;SET_STATIC_IP&quot;</span>, <span class="stringliteral">&quot;GET_CALIBRATION_STATUS&quot;</span>, <span class="stringliteral">&quot;NONE&quot;</span>};</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga05294e7317989e4fa34c8b51c703fc70">  115</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga05294e7317989e4fa34c8b51c703fc70">LIST_ANALOG_INPUTS_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga89c4eb6445082c988990fe2be2f441b5">NUM_LIST_ANALOG_INPUTS_PARAMS</a>] = {};</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gab349c2970503a44eb4e57436974a2bf9">  120</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gab349c2970503a44eb4e57436974a2bf9">READ_ADC_REGISTERS_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gae7b1842582f0a314801b97783767e609">NUM_READ_ADC_REGISTERS_PARAMS</a>] = {};</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gadb61b1d6d360af240f9a0ef5d83c25cf">  125</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gadb61b1d6d360af240f9a0ef5d83c25cf">READ_ANALOG_INPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gac419882cd49159e3078f1fedfe7f1d9d">NUM_READ_ANALOG_INPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<a class="code" href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a>, <a class="code" href="group__command__interpreter.html#gadc1cbfe3c96811afe874d8fe8a76b967">PARAMETER_NUMBER</a>};</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga436d10e43feb396c9f5e4d3ef5d510f5">  131</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga436d10e43feb396c9f5e4d3ef5d510f5">ADD_ANALOG_INPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gaf0d093bb26c186189433bbd8007cf0c0">NUM_ADD_ANALOG_INPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<a class="code" href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a>, <a class="code" href="group__command__interpreter.html#ga943938961217e5b466d15306bd5504b9">PARAMETER_BUFFER</a>, <a class="code" href="group__command__interpreter.html#ga0edc411fe5766dfbe192e22155fb0020">PARAMETER_RATE</a>, <a class="code" href="group__command__interpreter.html#gaf97c884c75bad1017220b24ccff04016">PARAMETER_GAIN</a>,</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<a class="code" href="group__command__interpreter.html#gacd4917419f347a3210e7b468c47188f0">PARAMETER_NAME</a>};</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga9bb48c8ce63d89ea1aab20833fbd9691">  138</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga9bb48c8ce63d89ea1aab20833fbd9691">REMOVE_ANALOG_INPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gac7fdbccfbee444562e69bbdc64b3d92d">NUM_REMOVE_ANALOG_INPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<a class="code" href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a>};</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga80461ab1e8d28de20ba44ff93e90c174">  144</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga80461ab1e8d28de20ba44ff93e90c174">CHECK_ANALOG_INPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga06548395b7cce1059cd7eff8f5bfb433">NUM_CHECK_ANALOG_INPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<a class="code" href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a>};</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga12cbb3a7ff1264641a75db037130c062">  150</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga12cbb3a7ff1264641a75db037130c062">SYSTEM_GCAL_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga5ee0ee8ce38b367ad3e68b77020ddc66">NUM_SYSTEM_GCAL_PARAMS</a>] = {<a class="code" href="group__command__interpreter.html#ga943938961217e5b466d15306bd5504b9">PARAMETER_BUFFER</a>,</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<a class="code" href="group__command__interpreter.html#ga0edc411fe5766dfbe192e22155fb0020">PARAMETER_RATE</a>, <a class="code" href="group__command__interpreter.html#gaf97c884c75bad1017220b24ccff04016">PARAMETER_GAIN</a>, <a class="code" href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a>};</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga012ad2ab047f56ee2f1bbe24441f46d3">  156</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga012ad2ab047f56ee2f1bbe24441f46d3">SYSTEM_CAL_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gab61f2dda81ab965fb510863070474767">NUM_SYSTEM_CAL_PARAMS</a>] = {};</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga37e4457ed0cb0dabb34ffcd740d59ed7">  161</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga37e4457ed0cb0dabb34ffcd740d59ed7">LIST_DIGITAL_INPUTS_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga5ad550260c3e06471bddb5c3a8aaba04">NUM_LIST_DIGITAL_INPUTS_PARAMS</a>] = {};</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga26d009205a856ee4c4c6e6c3b363f188">  166</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga26d009205a856ee4c4c6e6c3b363f188">READ_DIGITAL_INPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gae9468d3d4d92a32a998fa97c0075db48">NUM_READ_DIGITAL_INPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<a class="code" href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a>, <a class="code" href="group__command__interpreter.html#gadc1cbfe3c96811afe874d8fe8a76b967">PARAMETER_NUMBER</a>};</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga02032c0b60b605fe89dc910a27e12582">  172</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga02032c0b60b605fe89dc910a27e12582">ADD_DIGITAL_INPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga9c5c1af739a3a4edde8cdb7af7df1ec5">NUM_ADD_DIGITAL_INPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<a class="code" href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a>, <a class="code" href="group__command__interpreter.html#gacd4917419f347a3210e7b468c47188f0">PARAMETER_NAME</a>};</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga26930165286ff4adccafca5650b4b4cf">  178</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga26930165286ff4adccafca5650b4b4cf">REMOVE_DIGITAL_INPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga6096182153b5f1ed0b7c7f02337c1782">NUM_REMOVE_DIGITAL_INPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<a class="code" href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a>};</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gad3444869609f37e2fcb9ca55ac0b53ef">  184</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gad3444869609f37e2fcb9ca55ac0b53ef">LIST_DIGITAL_OUTPUTS_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga3d5083d6431df96a397de8cfad75d3b4">NUM_LIST_DIGITAL_OUTPUTS_PARAMS</a>] = {};</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gade511743b3ecf569a2e74c1b14291a5b">  189</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gade511743b3ecf569a2e74c1b14291a5b">SET_DIGITAL_OUTPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gaac55dd13b66c6ed14773e930596be11e">NUM_SET_DIGITAL_OUTPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<a class="code" href="group__command__interpreter.html#gae845277b8fe01a11cfad1732696507d3">PARAMETER_OUTPUT</a>, <a class="code" href="group__command__interpreter.html#gaa4e33f1b6e384ab8abcb41c12924896c">PARAMETER_STATE</a>};</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga4f49602cd24e42a37f7509d5fc24ff34">  195</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga4f49602cd24e42a37f7509d5fc24ff34">READ_DIGITAL_OUTPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga8e7fef9c50e4a2992d7ac233d7e65510">NUM_READ_DIGITAL_OUTPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<a class="code" href="group__command__interpreter.html#gae845277b8fe01a11cfad1732696507d3">PARAMETER_OUTPUT</a>, <a class="code" href="group__command__interpreter.html#gadc1cbfe3c96811afe874d8fe8a76b967">PARAMETER_NUMBER</a>};</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gaf583eedd117e9397b34163b0ed4791c3">  201</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gaf583eedd117e9397b34163b0ed4791c3">ADD_DIGITAL_OUTPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gadea8918a215685b1576f95e1fb754778">NUM_ADD_DIGITAL_OUTPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<a class="code" href="group__command__interpreter.html#gae845277b8fe01a11cfad1732696507d3">PARAMETER_OUTPUT</a>, <a class="code" href="group__command__interpreter.html#gacd4917419f347a3210e7b468c47188f0">PARAMETER_NAME</a>};</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gab8e88e0e75930f03474e1ff9e232ef63">  207</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gab8e88e0e75930f03474e1ff9e232ef63">REMOVE_DIGITAL_OUTPUT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gaab1534ae5702e990bfdc0f8c85094df0">NUM_REMOVE_DIGITAL_OUTPUT_PARAMS</a>] = {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<a class="code" href="group__command__interpreter.html#gae845277b8fe01a11cfad1732696507d3">PARAMETER_OUTPUT</a>};</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gae3e466b9002fbb2a3b72a14091736c14">  213</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gae3e466b9002fbb2a3b72a14091736c14">CLEAR_DIG_OUTPUT_FAULT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gaebf261e1faa9877050475c6a01c2f698">NUM_CLEAR_DIG_OUTPUT_FAULT_PARAMS</a>] = {</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<a class="code" href="group__command__interpreter.html#gae845277b8fe01a11cfad1732696507d3">PARAMETER_OUTPUT</a>};</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga4c2b766d3384cd7cb0ed759dab8fc4ac">  219</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga4c2b766d3384cd7cb0ed759dab8fc4ac">DISCONNECT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gab5824d68d182fb33e2aebc616288f06a">NUM_DISCONNECT_PARAMS</a>] = {};</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gaf4f7b3cf35167e36d202bb65a02f0b71">  224</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gaf4f7b3cf35167e36d202bb65a02f0b71">UPGRADE_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga42bcbf56d92ed56e8a88c69e5d4cb4c0">NUM_UPGRADE_PARAMS</a>] = {};</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gab114f1bb247754ff4bbc705b92f53222">  229</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gab114f1bb247754ff4bbc705b92f53222">IDENTIFY_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga6162173d76eb84687f453450c6973ed5">NUM_IDENTIFY_PARAMS</a>] = {};</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga7008aaf205ddd844e0a5affd12a08775">  234</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga7008aaf205ddd844e0a5affd12a08775">SAMPLE_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga1fc6732ec779877a349a53c180c22c29">NUM_SAMPLE_PARAMS</a>] = {<a class="code" href="group__command__interpreter.html#gadc1cbfe3c96811afe874d8fe8a76b967">PARAMETER_NUMBER</a>};</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gafc7b206c3c05fcf1ac21ddd5108f690a">  239</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gafc7b206c3c05fcf1ac21ddd5108f690a">HALT_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga9998ef3c02f0f85f3f984b04ab30663d">NUM_HALT_PARAMS</a>] = {};</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga37a6030d18afb1719e8b674ac3e649ec">  244</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga37a6030d18afb1719e8b674ac3e649ec">SET_RTC_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga36e8fbb263e5a9243d52f56202b5e3ce">NUM_SET_RTC_PARAMS</a>] = {<a class="code" href="group__command__interpreter.html#ga5a03812b6ac732c91bbca5149d3e14bd">PARAMETER_VALUE</a>};</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div>
<div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gac5a3a40f966d23af1d572909c1d8e952">  249</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gac5a3a40f966d23af1d572909c1d8e952">SET_USER_MAC_PARAMS</a>[<a class="code" href="group__command__interpreter.html#gaafcaaef444e34052e8d96c863c90543f">NUM_SET_USER_MAC_PARAMS</a>] = {<a class="code" href="group__command__interpreter.html#ga5a03812b6ac732c91bbca5149d3e14bd">PARAMETER_VALUE</a>};</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga27977b5ae6f92883015ee0cb83d54617">  254</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#ga27977b5ae6f92883015ee0cb83d54617">SET_STATIC_IP_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga4e0199c558a2061732f2e8a1245cb4a2">NUM_SET_STATIC_IP_PARAMS</a>] = {<a class="code" href="group__command__interpreter.html#ga5a03812b6ac732c91bbca5149d3e14bd">PARAMETER_VALUE</a>};</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;</div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gaea50720799ad68731b7672c1974aae1a">  259</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gaea50720799ad68731b7672c1974aae1a">GET_CALIBRATION_STATUS_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga4fc716dc88ef0cbdbc503e78eab47df4">NUM_GET_CALIBRATION_STATUS_PARAMS</a>] = {};</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;</div>
<div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gae6bcf7679336081f08e81ef76a680c81">  264</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__command__interpreter.html#gae6bcf7679336081f08e81ef76a680c81">NONE_PARAMS</a>[<a class="code" href="group__command__interpreter.html#ga6581408fc45ede8a8c643b4700e4113b">NUM_NONE_PARAMS</a>] = {};</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="keyword">static</span> <a class="code" href="struct_tekdaqc___command_interpreter__t.html">Tekdaqc_CommandInterpreter_t</a> interpreter;</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div>
<div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#a814b15b88a6c05e2c3cae8b1f821f451">  274</a></span>&#160;<a class="code" href="struct_analog___input__t.html">Analog_Input_t</a>* <a class="code" href="_tekdaqc___command_interpreter_8c.html#a814b15b88a6c05e2c3cae8b1f821f451">aInputs</a>[NUM_ANALOG_INPUTS];</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div>
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#a03e63fe115385116dc7c4a1ac39f5a8b">  279</a></span>&#160;<a class="code" href="struct_digital___input__t.html">Digital_Input_t</a>* <a class="code" href="_tekdaqc___command_interpreter_8c.html#a03e63fe115385116dc7c4a1ac39f5a8b">dInputs</a>[NUM_DIGITAL_INPUTS];</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;</div>
<div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#aeb4bcb3edcf6d5ba906e4f48e3315f4e">  284</a></span>&#160;<a class="code" href="struct_digital___output__t.html">Digital_Output_t</a>* <a class="code" href="_tekdaqc___command_interpreter_8c.html#aeb4bcb3edcf6d5ba906e4f48e3315f4e">dOutputs</a>[NUM_DIGITAL_OUTPUTS];</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> lastFunctionError = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="comment">/* PRIVATE TYPES */</span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div>
<div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">  300</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">  301</a></span>&#160;    <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a>, </div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">  302</a></span>&#160;    <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a>, </div>
<div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">  303</a></span>&#160;    <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a>, </div>
<div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">  304</a></span>&#160;    <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a> </div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;} <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a>;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div>
<div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404">  312</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404a95427ee9707b4540232a478b58ba2ecd">  313</a></span>&#160;    <a class="code" href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404a95427ee9707b4540232a478b58ba2ecd">MULTI_ANALOG_INPUT</a>, </div>
<div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404aa6a7b3a3d860f8adbe2b2f35dd41a648">  314</a></span>&#160;    <a class="code" href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404aa6a7b3a3d860f8adbe2b2f35dd41a648">MULTI_DIGITAL_INPUT</a>, </div>
<div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404a60962acf6c77e7c2d1a88009bf23a556">  315</a></span>&#160;    <a class="code" href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404a60962acf6c77e7c2d1a88009bf23a556">MULTI_DIGITAL_OUTPUT</a> </div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;} <a class="code" href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404">Multisampling_t</a>;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;<span class="comment">/* PRIVATE FUNCTION PROTOTYPES */</span></div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> ProcessCommand(<span class="keywordtype">char</span>* command, <span class="keywordtype">char</span> raw_args[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], uint8_t arg_count);</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> Command_ParseLine(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="keyword">static</span> <a class="code" href="group__command__interpreter.html#gafe8d33d42ee3ed4867090180ef38afbd">Command_t</a> ParseCommand(<span class="keyword">const</span> <span class="keywordtype">char</span>* command);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> ProcessCommandError(<span class="keyword">const</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> error);</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> ProcessFunctionError(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;<span class="keyword">static</span> <span class="keywordtype">bool</span> ParseKeyValuePairs(<span class="keywordtype">char</span> raw_args[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;<span class="keyword">static</span> <span class="keywordtype">bool</span> InputArgsCheck(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count,</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        uint8_t num_params, <span class="keyword">const</span> <span class="keywordtype">char</span>** params);</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;<span class="keyword">static</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> GetChannelListType(<span class="keywordtype">char</span>* arg);</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> BuildAnalogInputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type, <span class="keywordtype">char</span>* param);</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> BuildDigitalInputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type, <span class="keywordtype">char</span>* param);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> BuildDigitalOutputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type, <span class="keywordtype">char</span>* param);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;<span class="keyword">static</span> <span class="keywordtype">bool</span> isValidTextCharacter(<span class="keyword">const</span> <span class="keywordtype">char</span> character);</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> ToUpperCase(<span class="keywordtype">char</span>* <span class="keywordtype">string</span>);</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> ExecuteCommand(<a class="code" href="group__command__interpreter.html#gafe8d33d42ee3ed4867090180ef38afbd">Command_t</a> command, <span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ListAnalogInputs(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ReadADCRegisters(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ReadAnalogInput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_AddAnalogInput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_RemoveAnalogInput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_CheckAnalogInput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SystemGainCal(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SystemCal(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;        uint8_t count);</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ListDigitalInputs(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ReadDigitalInput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_AddDigitalInput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_RemoveDigitalInput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ListDigitalOutputs(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SetDigitalOutput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ReadDigitalOutput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_AddDigitalOutput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_RemoveDigitalOutput(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ClearDigitalOutputFault(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_Sample(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;        uint8_t count);</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_Identify(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SetRTC(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;        uint8_t count);</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SetUserMac(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;        uint8_t count);</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SetStaticIP(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_GetCalibrationStatus(<span class="keywordtype">char</span> keys[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>],</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count);</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;<span class="comment">/* PRIVATE FUNCTIONS */</span></div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> ProcessCommand(<span class="keywordtype">char</span>* command, <span class="keywordtype">char</span> raw_args[][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>], uint8_t arg_count) {</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;<span class="preprocessor"></span>    printf(<span class="stringliteral">&quot;[Command Interpreter] Processing command.\n\r&quot;</span>);</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;<span class="preprocessor"></span>    ToUpperCase(command); <span class="comment">/* Convert the command string to upper case */</span></div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;    <a class="code" href="group__command__interpreter.html#gafe8d33d42ee3ed4867090180ef38afbd">Command_t</a> command_type = ParseCommand(command); <span class="comment">/* Determine which command this is */</span></div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <span class="keywordtype">char</span> keys[MAX_NUM_ARGUMENTS][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>];</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;    <span class="keywordtype">char</span> values[MAX_NUM_ARGUMENTS][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>];</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> error = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;    <span class="keywordtype">bool</span> success = ParseKeyValuePairs(raw_args, keys, values, arg_count); <span class="comment">/* Parse the argument key/value pairs. */</span></div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;    <span class="keywordflow">if</span> (success == <a class="code" href="group__data__types.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>) {</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;        error = ExecuteCommand(command_type, keys, values, arg_count); <span class="comment">/* Execute the command */</span></div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;        error = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297">ERR_COMMAND_PARSE_ERROR</a>;</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    }</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    ProcessCommandError(error); <span class="comment">/* Handle any errors. */</span></div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;}</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> Command_ParseLine(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;<span class="preprocessor"></span>    printf(<span class="stringliteral">&quot;Parsing command: %s\n\r&quot;</span>, interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>);</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;<span class="preprocessor"></span>    <span class="keywordtype">char</span> raw_args[MAX_NUM_ARGUMENTS][<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>];</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    <span class="keywordtype">char</span>* pch;</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;    uint8_t count = 0U;</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    <span class="keywordtype">char</span> command[<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>];</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;    pch = strpbrk(interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>, COMMAND_DELIMETER);</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;    <span class="keywordflow">while</span> (pch != NULL) {</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        ++count;</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;        pch = strpbrk(pch + 1, COMMAND_DELIMETER);</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;    }</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;<span class="preprocessor"></span>    printf(<span class="stringliteral">&quot;[Command Parser] Parts count: %i\n\r&quot;</span>, count);</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;<span class="preprocessor"></span>    <span class="keywordflow">if</span> (count &gt; 0) { <span class="comment">/* Command with arguments */</span></div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;        <span class="comment">/* Extract the command first */</span></div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;        <span class="keywordtype">int</span> command_end = strcspn(interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>, COMMAND_DELIMETER);</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;        <span class="keywordflow">if</span> (command_end == MAX_COMMANDPART_LENGTH) {</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;            <span class="comment">/* This is not a valid command */</span></div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Command was too long, ignoring.\n\r&quot;</span>);</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;<span class="preprocessor"></span>            <a class="code" href="group__command__interpreter.html#ga1958dfed537e8e071b08b488b5911575">ClearCommandBuffer</a>();</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;            <span class="comment">/* This is a valid command */</span></div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;            pch = strtok(interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>, COMMAND_DELIMETER);</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;            strcpy(command, pch);</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;                pch = strtok(NULL, COMMAND_DELIMETER);</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;                <span class="keywordflow">if</span> (pch == NULL) {</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;                }</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;                strcpy(*(raw_args + i), pch);</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;            }</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Command: %s\n\r\tParts:\n\r&quot;</span>, command);</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;                printf(<span class="stringliteral">&quot;\t\tArg[%i]: %s\n\r&quot;</span>, i, raw_args[i]);</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;            }</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;<span class="preprocessor">#endif </span></div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;<span class="preprocessor"></span>        }</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;        <span class="comment">/* Command without arguments */</span></div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;        <span class="keywordtype">int</span> length = strlen(interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>);</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;        <span class="keywordflow">if</span> (length &gt; (MAX_COMMANDPART_LENGTH - 1)) {</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;            <span class="comment">/* This is not a valid command */</span></div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Command was too long, ignoring.\n\r&quot;</span>);</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;<span class="preprocessor"></span>            <span class="comment">/* Cleanup */</span></div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;            <a class="code" href="group__command__interpreter.html#ga1958dfed537e8e071b08b488b5911575">ClearCommandBuffer</a>();</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;            <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;            <span class="comment">/* Its a valid command */</span></div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;            <span class="comment">/* Copy the command */</span></div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;            strcpy(command, interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>);</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Command: %s\n\r&quot;</span>, command);</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;<span class="preprocessor"></span>        }</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;    }</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;    <span class="comment">/* Process the command */</span></div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;    ProcessCommand(command, raw_args, count);</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;}</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;<span class="keyword">static</span> <a class="code" href="group__command__interpreter.html#gafe8d33d42ee3ed4867090180ef38afbd">Command_t</a> ParseCommand(<span class="keyword">const</span> <span class="keywordtype">char</span>* command) {</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;<span class="preprocessor"></span>    printf(<span class="stringliteral">&quot;[Command Interpreter] Parsing command.\n\r&quot;</span>);</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;<span class="preprocessor"></span>    <a class="code" href="group__command__interpreter.html#gafe8d33d42ee3ed4867090180ef38afbd">Command_t</a> ret_command = COMMAND_LIST_ANALOG_INPUTS;</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;    <span class="keywordflow">while</span> (ret_command &lt;= COMMAND_NONE) {</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;        <span class="keywordflow">if</span> (strcmp(command, COMMAND_STRINGS[ret_command]) == 0) {</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;            ++ret_command;</div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;        }</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;    }</div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;<span class="preprocessor"></span>    <span class="keywordflow">if</span> (ret_command &lt;= COMMAND_NONE) {</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;        printf(<span class="stringliteral">&quot;[Command Interpreter] Determined command to be: %s\n\r&quot;</span>, COMMAND_STRINGS[ret_command]);</div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;        printf(<span class="stringliteral">&quot;[Command Interpreter] Unable to determine command.\n\r&quot;</span>);</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;    }</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;<span class="preprocessor"></span>    <span class="keywordflow">return</span> ret_command;</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;}</div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> ProcessCommandError(<span class="keyword">const</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> error) {</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* error_string = <a class="code" href="group__tekdaqc__error.html#ga9e4249e557d2ff186f09a6f941bfcaa2">Tekdaqc_CommandError_ToString</a>(error);</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;    <span class="keywordflow">switch</span> (error) {</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>:</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;SUCCESS - %s&quot;</span>, error_string);</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>:</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;FAIL - %s.&quot;</span>, error_string);</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6a0e19c2fb9deb5af84cfea28b072265">ERR_COMMAND_BAD_COMMAND</a>:</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;FAIL - %s&quot;</span>, error_string);</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297">ERR_COMMAND_PARSE_ERROR</a>:</div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;FAIL - %s&quot;</span>, error_string);</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>:</div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;FAIL - %s:\n\r\t&quot;</span>, error_string);</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;            ProcessFunctionError();</div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397afa2d8d19a4a4f748558910cd9a18aee1">ERR_COMMAND_UNKNOWN_ERROR</a>:</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;FAIL - %s&quot;</span>, error_string);</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a53cb1f7d18c7a7e2f95b7700b4273f9f">ERR_COMMAND_ADC_INVALID_OPERATION</a>:</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;FAIL - %s&quot;</span>, error_string);</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a1944910c8a33fa83ea999c0e83b21add">ERR_COMMAND_DI_INVALID_OPERATION</a>:</div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;FAIL - %s&quot;</span>, error_string);</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a0b3f4f2e4d33d07265fa3731da328514">ERR_COMMAND_DO_INVALID_OPERATION</a>:</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;FAIL - %s&quot;</span>, error_string);</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;            snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;ERROR - %s&quot;</span>, error_string);</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;    }</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;    <a class="code" href="group__telnet__server.html#ga0afb5de5ce2d81cdc5322e0534bae1d8">TelnetWriteStatusMessage</a>(TOSTRING_BUFFER);</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;}</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> ProcessFunctionError(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;    snprintf(TOSTRING_BUFFER, SIZE_TOSTRING_BUFFER, <span class="stringliteral">&quot;Function Error: %s&quot;</span>,</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;            <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(lastFunctionError));</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;}</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;<span class="keyword">static</span> <span class="keywordtype">bool</span> ParseKeyValuePairs(<span class="keywordtype">char</span> raw_args[][MAX_COMMANDPART_LENGTH], <span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    <span class="keywordtype">char</span>* raw;</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;    <span class="keywordtype">char</span> temp[<a class="code" href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a>];</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;    <span class="keywordtype">bool</span> retval = <a class="code" href="group__data__types.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;        raw = raw_args[i];</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;        <span class="keywordflow">if</span> (strncmp(raw, <a class="code" href="_tekdaqc___command_interpreter_8c.html#a417605542fbbdc39d9efb5fbdc15ecce">KEY_VALUE_PAIR_FLAG</a>, 2) == 0) {</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;            <span class="comment">/* Properly formatted command */</span></div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;            strcpy(temp, (raw + 2)); <span class="comment">/* Offset for the first two characters */</span></div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;            raw = strtok(temp, <a class="code" href="_tekdaqc___command_interpreter_8c.html#a0e6c06793de5eedf6ca83f03ba746cb7">KEY_VALUE_PAIR_DELIMETER</a>);</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;            ToUpperCase(raw);</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;            strcpy(keys[i], raw);</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;            raw = strtok(NULL, <a class="code" href="_tekdaqc___command_interpreter_8c.html#a0e6c06793de5eedf6ca83f03ba746cb7">KEY_VALUE_PAIR_DELIMETER</a>);</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;            <span class="keywordflow">if</span> (raw != NULL) {</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;                ToUpperCase(raw);</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;                strcpy(values[i], raw);</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;                strcpy(values[i], <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;            }</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;            <span class="comment">/* Not a properly formatted command */</span></div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Key/value pair %i (%s) was not properly formatted.\n\r&quot;</span>, i, raw);</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__data__types.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>;</div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;        }</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;    }</div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;}</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;<span class="keyword">static</span> <span class="keywordtype">bool</span> InputArgsCheck(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count,</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;        uint8_t num_params, <span class="keyword">const</span> <span class="keywordtype">char</span>** params) {</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;    <span class="keywordflow">if</span> (count &gt; num_params) {</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;    }</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;    <span class="keywordtype">int</span> idx = 0;</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;    <span class="keywordtype">bool</span> valid = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;        idx = 0;</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;        valid = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;        <span class="keywordflow">while</span> (idx &lt; num_params) {</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;            <span class="keywordflow">if</span> (strcmp(keys[i], params[idx++]) == 0) {</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;                valid = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;            }</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;        }</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;        <span class="keywordflow">if</span> (valid == <span class="keyword">false</span>) {</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;            <span class="comment">/* This is a bad key */</span></div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        }</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;    }</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;}</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;<span class="keyword">static</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> GetChannelListType(<span class="keywordtype">char</span>* arg) {</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;    <span class="keywordflow">if</span> (strcmp(arg, <a class="code" href="_tekdaqc___command_interpreter_8c.html#a92a0c7db7d0fa06d4a7b5607b58b8e22">ALL_CHANNELS_STRING</a>) == 0) {</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>;</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strchr(arg, <a class="code" href="_tekdaqc___command_interpreter_8c.html#a822883911d1571e6b8b772d62a68cc7f">SET_DELIMETER</a>) != NULL) {</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a>;</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (strchr(arg, <a class="code" href="_tekdaqc___command_interpreter_8c.html#aab062553184015b4b1b1d7f2280f60ff">RANGE_DELIMETER</a>) != NULL) {</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a>;</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a>;</div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;    }</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;}</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> BuildAnalogInputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type, <span class="keywordtype">char</span>* param) {</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;    uint8_t count = 0U;</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;    <span class="keywordtype">char</span>* ptr = NULL;</div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;    int8_t channel = -1;</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;    <span class="keywordtype">long</span> <span class="keywordtype">int</span> value = 0L;</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;    <span class="keywordtype">char</span>* str = NULL;</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;    uint8_t start = 0U;</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;    uint8_t end = 0U;</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;    uint8_t value1 = 0U;</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;    uint8_t value2 = 0U;</div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;    <span class="keywordflow">for</span> (uint_fast8_t i = 0; i &lt; NUM_ANALOG_INPUTS; ++i) {</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;        aInputs[i] = NULL; <span class="comment">/* NULL them all initially */</span></div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;    }</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;    <span class="keywordflow">switch</span> (list_type) {</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a>: <span class="comment">/* SINGLE_CHANNEL */</span></div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;            channel = (int8_t) strtol(param, NULL, 10);</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;            <span class="keywordflow">if</span> (channel &lt; 0 || channel &gt; NUM_ANALOG_INPUTS) {</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;                <span class="comment">/* Input number out of range */</span></div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] The requested input number is out of range.\n\r&quot;</span>);</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;<span class="preprocessor"></span>                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;            }</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;            aInputs[0] = <a class="code" href="group__analog__input.html#ga697505715d2411ad856bca3d1e726913">GetAnalogInputByNumber</a>(channel);</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END SINGLE_INPUT */</span></div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a>: <span class="comment">/* CHANNEL_SET */</span></div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;            <span class="keywordflow">if</span> (param != NULL) {</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;                str = param;</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;                <span class="keywordflow">while</span> (<a class="code" href="group__data__types.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>) {</div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;                    <span class="keywordflow">if</span> (*ptr == <a class="code" href="_tekdaqc___command_interpreter_8c.html#a822883911d1571e6b8b772d62a68cc7f">SET_DELIMETER</a>) {</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;                        str = ptr + 1;</div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;                    }</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;                    value = strtol(str, &amp;ptr, 10);</div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;                    <span class="keywordflow">if</span> (value &lt; NUM_ANALOG_INPUTS &amp;&amp; value &gt;= 0L) {</div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;                        aInputs[value] = <a class="code" href="group__analog__input.html#ga697505715d2411ad856bca3d1e726913">GetAnalogInputByNumber</a>(value);</div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;                        ++count;</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;                    }</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;                    <span class="keywordflow">if</span> (ptr == NULL) {</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;                    }</div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;                }</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;            }</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END INPUT SET */</span></div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a>: <span class="comment">/* INPUT_RANGE */</span></div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;            start = 0U;</div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;            end = 0U;</div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;            value1 = (uint8_t) strtol(param, &amp;ptr, 10); <span class="comment">/* We know these can potentially loose data...it would be invalid anyway */</span></div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;            value2 = (uint8_t) strtol((ptr + 1), NULL, 10);</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;</div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;            <span class="keywordflow">if</span> (value1 != 0L) {</div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;                start = value1;</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;                start = 0U;</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;            }</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;            <span class="keywordflow">if</span> (value2 != 0L) {</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;                end = value2;</div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;                end = NUM_ANALOG_INPUTS;</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;            }</div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;            count = end - start + 1;</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;                aInputs[i] = <a class="code" href="group__analog__input.html#ga697505715d2411ad856bca3d1e726913">GetAnalogInputByNumber</a>(start + i); <span class="comment">/* Some of these may be NULL, this is OK. */</span></div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;            }</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END INPUT RANGE */</span></div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>: <span class="comment">/* ALL_CHANNELS */</span></div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;            count = NUM_ANALOG_INPUTS;</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;                aInputs[i] = <a class="code" href="group__analog__input.html#ga697505715d2411ad856bca3d1e726913">GetAnalogInputByNumber</a>(i); <span class="comment">/* Some of these may be NULL, this is OK. */</span></div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;            }</div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] The specified input range is invalid.\n\r&quot;</span>);</div>
<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;<span class="preprocessor"></span>            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;    }</div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;}</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;</div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> BuildDigitalInputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type, <span class="keywordtype">char</span>* param) {</div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;    uint8_t count = 0U;</div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;    <span class="keywordtype">char</span>* ptr = NULL;</div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;    int8_t channel = -1;</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;    <span class="keywordtype">long</span> <span class="keywordtype">int</span> value = 0L;</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;    <span class="keywordtype">char</span>* str = NULL;</div>
<div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;    uint8_t start = 0U;</div>
<div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;    uint8_t end = 0U;</div>
<div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;    uint8_t value1 = 0U;</div>
<div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;    uint8_t value2 = 0U;</div>
<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;</div>
<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;    <span class="keywordflow">for</span> (uint_fast8_t i = 0U; i &lt; NUM_DIGITAL_INPUTS; ++i) {</div>
<div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;        dInputs[i] = NULL; <span class="comment">/* NULL them all initially */</span></div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;    }</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;    <span class="keywordflow">switch</span> (list_type) {</div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a>: <span class="comment">/* SINGLE_CHANNEL */</span></div>
<div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;            channel = (int8_t) strtol(param, NULL, 10);</div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;            <span class="keywordflow">if</span> (channel &lt; 0 || channel &gt; NUM_DIGITAL_INPUTS) {</div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;                <span class="comment">/* Input number out of range */</span></div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] The requested input number is out of range.\n\r&quot;</span>);</div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;<span class="preprocessor"></span>                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;            }</div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;            dInputs[0] = <a class="code" href="group__digital__input.html#gadfa62573aaa64c6bdcbb94c164099154">GetDigitalInputByNumber</a>(channel);</div>
<div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END SINGLE_INPUT */</span></div>
<div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a>: <span class="comment">/* CHANNEL_SET */</span></div>
<div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;            <span class="keywordflow">if</span> (param != NULL) {</div>
<div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;                str = param;</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;                <span class="keywordflow">while</span> (<a class="code" href="group__data__types.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>) {</div>
<div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;                    <span class="keywordflow">if</span> (*ptr == <a class="code" href="_tekdaqc___command_interpreter_8c.html#a822883911d1571e6b8b772d62a68cc7f">SET_DELIMETER</a>) {</div>
<div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;                        str = ptr + 1;</div>
<div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;                    }</div>
<div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;                    value = strtol(str, &amp;ptr, 10);</div>
<div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;                    <span class="keywordflow">if</span> (value &lt; NUM_DIGITAL_INPUTS &amp;&amp; value &gt;= 0L) {</div>
<div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;                        dInputs[value] = <a class="code" href="group__digital__input.html#gadfa62573aaa64c6bdcbb94c164099154">GetDigitalInputByNumber</a>(value);</div>
<div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;                        ++count;</div>
<div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;                    }</div>
<div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;                    <span class="keywordflow">if</span> (ptr == NULL) {</div>
<div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;                    }</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;                }</div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;            }</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END INPUT SET */</span></div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a>: <span class="comment">/* INPUT_RANGE */</span></div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;            start = 0U;</div>
<div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;            end = 0U;</div>
<div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;            value1 = (uint8_t) strtol(param, &amp;ptr, 10); <span class="comment">/* We know these can potentially loose data...it would be invalid anyway */</span></div>
<div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;            value2 = (uint8_t) strtol((ptr + 1), NULL, 10);</div>
<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160;</div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;            <span class="keywordflow">if</span> (value1 != 0L) {</div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;                start = value1;</div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;                start = 0U;</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;            }</div>
<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160;            <span class="keywordflow">if</span> (value2 != 0L) {</div>
<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;                end = value2;</div>
<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160;                end = NUM_DIGITAL_INPUTS;</div>
<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;            }</div>
<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;</div>
<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;            count = end - start + 1;</div>
<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;                dInputs[i] = <a class="code" href="group__digital__input.html#gadfa62573aaa64c6bdcbb94c164099154">GetDigitalInputByNumber</a>(start + i); <span class="comment">/* Some of these may be NULL, this is OK. */</span></div>
<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;            }</div>
<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>: <span class="comment">/* ALL_CHANNELS */</span></div>
<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;            count = NUM_DIGITAL_INPUTS;</div>
<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;                dInputs[i] = <a class="code" href="group__digital__input.html#gadfa62573aaa64c6bdcbb94c164099154">GetDigitalInputByNumber</a>(i); <span class="comment">/* Some of these may be NULL, this is OK. */</span></div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;            }</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END ALL_CHANNELS */</span></div>
<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] The specified input range is invalid.\n\r&quot;</span>);</div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;<span class="preprocessor"></span>            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;    }</div>
<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;}</div>
<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160;</div>
<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> BuildDigitalOutputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type, <span class="keywordtype">char</span>* param) {</div>
<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;    uint8_t count = 0U;</div>
<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;    <span class="keywordtype">char</span>* ptr = NULL;</div>
<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;    int8_t channel = -1;</div>
<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;    <span class="keywordtype">long</span> <span class="keywordtype">int</span> value = 0L;</div>
<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;    <span class="keywordtype">char</span>* str = NULL;</div>
<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;    uint8_t start = 0U;</div>
<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;    uint8_t end = 0U;</div>
<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;    uint8_t value1 = 0U;</div>
<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;    uint8_t value2 = 0U;</div>
<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;</div>
<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;    <span class="keywordflow">for</span> (uint_fast8_t i = 0; i &lt; NUM_DIGITAL_OUTPUTS; ++i) {</div>
<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;        dOutputs[i] = NULL; <span class="comment">/* NULL them all initially */</span></div>
<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;    }</div>
<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160;</div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;    <span class="keywordflow">switch</span> (list_type) {</div>
<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a>:</div>
<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>&#160;            channel = (int8_t) strtol(param, NULL, 10);</div>
<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;            <span class="keywordflow">if</span> (channel &lt; 0 || channel &gt; NUM_DIGITAL_OUTPUTS) {</div>
<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160;                <span class="comment">/* Input number out of range */</span></div>
<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] The requested input number is out of range.\n\r&quot;</span>);</div>
<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160;<span class="preprocessor"></span>                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;            }</div>
<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>&#160;            dOutputs[0] = <a class="code" href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a>(channel);</div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a>:</div>
<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160;            <span class="keywordflow">if</span> (param != NULL) {</div>
<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;                str = param;</div>
<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;                <span class="keywordflow">while</span> (<a class="code" href="group__data__types.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>) {</div>
<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;                    <span class="keywordflow">if</span> (*ptr == <a class="code" href="_tekdaqc___command_interpreter_8c.html#a822883911d1571e6b8b772d62a68cc7f">SET_DELIMETER</a>) {</div>
<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;                        str = ptr + 1;</div>
<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160;                    }</div>
<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;                    value = strtol(str, &amp;ptr, 10);</div>
<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160;                    <span class="keywordflow">if</span> (value &lt; NUM_DIGITAL_OUTPUTS &amp;&amp; value &gt;= 0L) {</div>
<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;                        dOutputs[value] = <a class="code" href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a>(value);</div>
<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;                        ++count;</div>
<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;                    }</div>
<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;                    <span class="keywordflow">if</span> (ptr == NULL) {</div>
<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;                    }</div>
<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;                }</div>
<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;            }</div>
<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END INPUT SET */</span></div>
<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a>:</div>
<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;            start = 0U;</div>
<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;            end = 0U;</div>
<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>&#160;            value1 = (uint8_t) strtol(param, &amp;ptr, 10); <span class="comment">/* We know these can potentially loose data...it would be invalid anyway */</span></div>
<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>&#160;            value2 = (uint8_t) strtol((ptr + 1), NULL, 10);</div>
<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160;</div>
<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;            <span class="keywordflow">if</span> (value1 != 0L) {</div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;                start = value1;</div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;                start = 0U;</div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;            }</div>
<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;            <span class="keywordflow">if</span> (value2 != 0L) {</div>
<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;                end = value2;</div>
<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;                end = NUM_DIGITAL_OUTPUTS;</div>
<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160;            }</div>
<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;</div>
<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;            count = end - start + 1;</div>
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;                dOutputs[i] = <a class="code" href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a>(start + i); <span class="comment">/* Some of these may be NULL, this is OK. */</span></div>
<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;            }</div>
<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END CHANNEL RANGE */</span></div>
<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>: <span class="comment">/* ALL_CHANNELS */</span></div>
<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160;            count = NUM_DIGITAL_OUTPUTS;</div>
<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; count; ++i) {</div>
<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160;                dOutputs[i] = <a class="code" href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a>(i); <span class="comment">/* Some of these may be NULL, this is OK. */</span></div>
<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;            }</div>
<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;            <span class="keywordflow">break</span>; <span class="comment">/* END ALL_CHANNELS */</span></div>
<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] The specified input range is invalid.\n\r&quot;</span>);</div>
<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160;<span class="preprocessor"></span>    }</div>
<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160;}</div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;</div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;<span class="keyword">static</span> <span class="keywordtype">bool</span> isValidTextCharacter(<span class="keyword">const</span> <span class="keywordtype">char</span> character) {</div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;    <span class="keywordflow">return</span> (character == 0x5F || (character &gt;= 0x41 &amp;&amp; character &lt;= 0x5A) || (character &gt;= 0x61 &amp;&amp; character &lt;= 0x7A)) ?</div>
<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160;            <span class="keyword">true</span> : <span class="keyword">false</span>;</div>
<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>&#160;}</div>
<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;</div>
<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> ToUpperCase(<span class="keywordtype">char</span>* <span class="keywordtype">string</span>) {</div>
<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160;    <span class="keywordtype">int</span> i = 0;</div>
<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>&#160;    <span class="keywordtype">char</span> character;</div>
<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;    <span class="keywordflow">while</span> (<span class="keywordtype">string</span>[i]) {</div>
<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;        character = <span class="keywordtype">string</span>[i];</div>
<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160;        <span class="keywordflow">if</span> (isValidTextCharacter(character)) {</div>
<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;            <span class="keywordflow">if</span> ((character &gt;= 0x41 &amp;&amp; character &lt;= 0x5A) == <span class="keyword">false</span>) {</div>
<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;                <span class="keywordflow">if</span> (character != 0x5F) { <span class="comment">/* Don&#39;t treat underscores */</span></div>
<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;                    <span class="keywordtype">string</span>[i] = (character - 0x20);</div>
<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;                }</div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;            }</div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;        }</div>
<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;        ++i;</div>
<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;    }</div>
<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;}</div>
<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160;</div>
<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> ExecuteCommand(<a class="code" href="group__command__interpreter.html#gafe8d33d42ee3ed4867090180ef38afbd">Command_t</a> command, <span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;    <span class="keywordflow">switch</span> (command) {</div>
<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>&#160;        <span class="keywordflow">case</span> COMMAND_LIST_ANALOG_INPUTS:</div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;            retval = Ex_ListAnalogInputs(keys, values, count);</div>
<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;        <span class="keywordflow">case</span> COMMAND_READ_ADC_REGISTERS:</div>
<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;            retval = Ex_ReadADCRegisters(keys, values, count);</div>
<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;        <span class="keywordflow">case</span> COMMAND_READ_ANALOG_INPUT:</div>
<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>&#160;            retval = Ex_ReadAnalogInput(keys, values, count);</div>
<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160;        <span class="keywordflow">case</span> COMMAND_ADD_ANALOG_INPUT:</div>
<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;            retval = Ex_AddAnalogInput(keys, values, count);</div>
<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>&#160;        <span class="keywordflow">case</span> COMMAND_REMOVE_ANALOG_INPUT:</div>
<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;            retval = Ex_RemoveAnalogInput(keys, values, count);</div>
<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160;        <span class="keywordflow">case</span> COMMAND_CHECK_ANALOG_INPUT:</div>
<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;            retval = Ex_CheckAnalogInput(keys, values, count);</div>
<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>&#160;        <span class="keywordflow">case</span> COMMAND_SYSTEM_GCAL:</div>
<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>&#160;            retval = Ex_SystemGainCal(keys, values, count);</div>
<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>&#160;        <span class="keywordflow">case</span> COMMAND_SYSTEM_CAL:</div>
<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160;            retval = Ex_SystemCal(keys, values, count);</div>
<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160;        <span class="keywordflow">case</span> COMMAND_LIST_DIGITAL_INPUTS:</div>
<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;            retval = Ex_ListDigitalInputs(keys, values, count);</div>
<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>&#160;        <span class="keywordflow">case</span> COMMAND_READ_DIGITAL_INPUT:</div>
<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;            retval = Ex_ReadDigitalInput(keys, values, count);</div>
<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>&#160;        <span class="keywordflow">case</span> COMMAND_ADD_DIGITAL_INPUT:</div>
<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>&#160;            retval = Ex_AddDigitalInput(keys, values, count);</div>
<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;        <span class="keywordflow">case</span> COMMAND_REMOVE_DIGITAL_INPUT:</div>
<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;            retval = Ex_RemoveDigitalInput(keys, values, count);</div>
<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;        <span class="keywordflow">case</span> COMMAND_LIST_DIGITAL_OUTPUTS:</div>
<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;            retval = Ex_ListDigitalOutputs(keys, values, count);</div>
<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;        <span class="keywordflow">case</span> COMMAND_SET_DIGITAL_OUTPUT:</div>
<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;            retval = Ex_SetDigitalOutput(keys, values, count);</div>
<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>&#160;        <span class="keywordflow">case</span> COMMAND_READ_DIGITAL_OUTPUT:</div>
<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>&#160;            retval = Ex_ReadDigitalOutput(keys, values, count);</div>
<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>&#160;        <span class="keywordflow">case</span> COMMAND_ADD_DIGITAL_OUTPUT:</div>
<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>&#160;            retval = Ex_AddDigitalOutput(keys, values, count);</div>
<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;        <span class="keywordflow">case</span> COMMAND_REMOVE_DIGITAL_OUTPUT:</div>
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;            retval = Ex_RemoveDigitalOutput(keys, values, count);</div>
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160;        <span class="keywordflow">case</span> COMMAND_CLEAR_DIG_OUTPUT_FAULT:</div>
<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160;            retval = Ex_ClearDigitalOutputFault(keys, values, count);</div>
<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160;        <span class="keywordflow">case</span> COMMAND_DISCONNECT:</div>
<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160;            <span class="comment">/* Close the telnet connection */</span></div>
<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>&#160;            <a class="code" href="group__telnet__server.html#ga26f786d2e47e4bb5f180d2740eebc957">TelnetClose</a>();</div>
<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160;        <span class="keywordflow">case</span> COMMAND_UPGRADE:</div>
<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;            <span class="comment">/* Write the update flag to the backup register */</span></div>
<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;            RTC_WriteBackupRegister(UPDATE_FLAG_REGISTER,</div>
<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160;                    (RTC_ReadBackupRegister(UPDATE_FLAG_REGISTER) | UPDATE_FLAG_ENABLED));</div>
<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>&#160;            <span class="comment">/* Close the telnet connection */</span></div>
<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>&#160;            <a class="code" href="group__telnet__server.html#ga26f786d2e47e4bb5f180d2740eebc957">TelnetClose</a>();</div>
<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>&#160;            <span class="comment">/* Reset the processor */</span></div>
<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>&#160;            NVIC_SystemReset();</div>
<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>&#160;        <span class="keywordflow">case</span> COMMAND_IDENTIFY:</div>
<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>&#160;            Ex_Identify();</div>
<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>&#160;        <span class="keywordflow">case</span> COMMAND_SAMPLE:</div>
<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>&#160;            retval = Ex_Sample(keys, values, count);</div>
<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160;        <span class="keywordflow">case</span> COMMAND_HALT:</div>
<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160;            <a class="code" href="group__command__state.html#ga7ffd79ad6c6165445ae5f0f29bd92d83">HaltTasks</a>();</div>
<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>&#160;        <span class="keywordflow">case</span> COMMAND_SET_RTC:</div>
<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>&#160;            retval = Ex_SetRTC(keys, values, count);</div>
<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;        <span class="keywordflow">case</span> COMMAND_SET_USER_MAC:</div>
<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;            retval = Ex_SetUserMac(keys, values, count);</div>
<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;        <span class="keywordflow">case</span> COMMAND_SET_STATIC_IP:</div>
<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160;            retval = Ex_SetStaticIP(keys, values, count);</div>
<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;        <span class="keywordflow">case</span> COMMAND_GET_CALIBRATION_STATUS:</div>
<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160;            retval = Ex_GetCalibrationStatus(keys, values, count);</div>
<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>&#160;        <span class="keywordflow">case</span> COMMAND_NONE:</div>
<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>&#160;            <span class="comment">/* Do nothing */</span></div>
<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160;            <span class="comment">/* Do nothing */</span></div>
<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Unrecognized command, doing nothing.\n\r&quot;</span>);</div>
<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6a0e19c2fb9deb5af84cfea28b072265">ERR_COMMAND_BAD_COMMAND</a>;</div>
<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;    }</div>
<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>&#160;}</div>
<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>&#160;</div>
<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ListAnalogInputs(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#ga89c4eb6445082c988990fe2be2f441b5">NUM_LIST_ANALOG_INPUTS_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga05294e7317989e4fa34c8b51c703fc70">LIST_ANALOG_INPUTS_PARAMS</a>)) {</div>
<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>&#160;        <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__analog__input.html#ga30736f8a2ceb6a1993055302893efefe">ListAnalogInputs</a>();</div>
<div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>&#160;        <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Listing of analog inputs failed with error: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>&#160;                    <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160;<span class="preprocessor"></span>            lastFunctionError = status;</div>
<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160;            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>&#160;        }</div>
<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>&#160;        <span class="comment">/* We can&#39;t create a new input */</span></div>
<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for listing the analog inputs.\n\r&quot;</span>);</div>
<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160;    }</div>
<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160;}</div>
<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160;</div>
<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ReadADCRegisters(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#gae7b1842582f0a314801b97783767e609">NUM_READ_ADC_REGISTERS_PARAMS</a>, <a class="code" href="group__command__interpreter.html#gab349c2970503a44eb4e57436974a2bf9">READ_ADC_REGISTERS_PARAMS</a>)) {</div>
<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>&#160;        <a class="code" href="group__tekdaqc__configuration.html#ga7fee54fd2d4e5ad001547a64d519bdb1">ClearToStringBuffer</a>();</div>
<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>&#160;        <a class="code" href="group__ads1256__driver.html#gacbbff85197a622b07cfb2bf47b57c29b">ADS1256_RegistersToString</a>();</div>
<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>&#160;        <span class="keywordflow">if</span> (TOSTRING_BUFFER[0] != <span class="charliteral">&#39;\0&#39;</span>) {</div>
<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>&#160;            <span class="comment">//TelnetWriteString(TOSTRING_BUFFER);</span></div>
<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>&#160;            <a class="code" href="group__telnet__server.html#ga7f3d87d181908e8353a67bbaf15fac50">TelnetWriteCommandDataMessage</a>(TOSTRING_BUFFER);</div>
<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>&#160;            <a class="code" href="group__tekdaqc__configuration.html#ga7fee54fd2d4e5ad001547a64d519bdb1">ClearToStringBuffer</a>();</div>
<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>&#160;            <span class="comment">/* An error occurred */</span></div>
<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Unable to build string to print ADC registers.\n\r&quot;</span>);</div>
<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160;        }</div>
<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>&#160;        <span class="comment">/* We can&#39;t create a new input */</span></div>
<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for reading the ADC registers.\n\r&quot;</span>);</div>
<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>&#160;    }</div>
<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>&#160;}</div>
<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160;</div>
<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ReadAnalogInput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#gac419882cd49159e3078f1fedfe7f1d9d">NUM_READ_ANALOG_INPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#gadb61b1d6d360af240f9a0ef5d83c25cf">READ_ANALOG_INPUT_PARAMS</a>)) {</div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160;        int32_t numSamples = 0;</div>
<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160;        <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type = <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>;</div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160;        int8_t index = -1;</div>
<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="group__command__interpreter.html#gac419882cd49159e3078f1fedfe7f1d9d">NUM_READ_ANALOG_INPUT_PARAMS</a>; ++i) {</div>
<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160;            index = <a class="code" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a>(keys, <a class="code" href="group__command__interpreter.html#gadb61b1d6d360af240f9a0ef5d83c25cf">READ_ANALOG_INPUT_PARAMS</a>[i], count);</div>
<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160;            <span class="keywordflow">if</span> (index &gt;= 0) { <span class="comment">/* We found the key in the list */</span></div>
<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>&#160;                <span class="keywordflow">switch</span> (i) { <span class="comment">/* Switch on the key not position in arguments list */</span></div>
<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>&#160;                    <span class="keywordflow">case</span> 0: <span class="comment">/* INPUT key */</span></div>
<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;Processing INPUT key\n\r&quot;</span>);</div>
<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>&#160;<span class="preprocessor"></span>                        list_type = GetChannelListType(values[index]);</div>
<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>&#160;                        BuildAnalogInputList(list_type, values[index]);</div>
<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>&#160;                    <span class="keywordflow">case</span> 1: <span class="comment">/* NUMBER key */</span></div>
<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;Processing NUMBER key\n\r&quot;</span>);</div>
<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>&#160;<span class="preprocessor"></span>                        numSamples = (int32_t) strtol(values[index], NULL, 10);</div>
<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>&#160;                    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>&#160;                        <span class="comment">/* Return an error */</span></div>
<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>&#160;                        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297">ERR_COMMAND_PARSE_ERROR</a>;</div>
<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>&#160;                }</div>
<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>&#160;            }</div>
<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>&#160;            <span class="keywordflow">if</span> (retval != <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) {</div>
<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>&#160;                <span class="keywordflow">break</span>; <span class="comment">/* If an error occurred, don&#39;t bother continuing */</span></div>
<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>&#160;            }</div>
<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>&#160;        }</div>
<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>&#160;        <span class="keywordflow">if</span> (retval == <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) { <span class="comment">/* If an error occurred, don&#39;t bother continuing */</span></div>
<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>&#160;            <span class="keywordflow">for</span> (uint_fast8_t i = 0; i &lt; NUM_ANALOG_INPUTS; ++i) {</div>
<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>&#160;                <span class="keywordflow">if</span> (aInputs[i] != NULL) {</div>
<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;                    <span class="keywordflow">if</span> (aInputs[i]-&gt;added == <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131a4ecfadabb635f0b5dd33b66498b2d04f">CHANNEL_NOTADDED</a>) {</div>
<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160;                        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>&#160;                        lastFunctionError = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ad439d1a813dcd3ec1fb1f02ea9c48de6">ERR_AIN_INPUT_NOT_FOUND</a>;</div>
<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>&#160;                    }</div>
<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>&#160;                }</div>
<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160;            }</div>
<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span>&#160;        }</div>
<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160;        <span class="keywordflow">if</span> (retval == <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) { <span class="comment">/* If an error occurred, don&#39;t bother continuing */</span></div>
<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160;            <span class="keywordflow">switch</span> (list_type) {</div>
<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a>:</div>
<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160;                    <a class="code" href="group__adc__statemachine.html#ga979620e2e4743c8f5d1f053a90705841">ADC_Machine_Input_Sample</a>(aInputs, numSamples, <span class="keyword">true</span>);</div>
<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a>:</div>
<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160;                    <a class="code" href="group__adc__statemachine.html#ga979620e2e4743c8f5d1f053a90705841">ADC_Machine_Input_Sample</a>(aInputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a>:</div>
<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>&#160;                    <a class="code" href="group__adc__statemachine.html#ga979620e2e4743c8f5d1f053a90705841">ADC_Machine_Input_Sample</a>(aInputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>:</div>
<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>&#160;                    <a class="code" href="group__adc__statemachine.html#ga979620e2e4743c8f5d1f053a90705841">ADC_Machine_Input_Sample</a>(aInputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160;                <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160;                    <span class="comment">/* Return an error */</span></div>
<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>&#160;                    retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;                    lastFunctionError = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a53cb1f7d18c7a7e2f95b7700b4273f9f">ERR_COMMAND_ADC_INVALID_OPERATION</a>;</div>
<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160;            }</div>
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>&#160;            <a class="code" href="group__command__state.html#ga517067b49452b8a3e1e87831720b573b">CommandStateMoveToAnalogInputSample</a>();</div>
<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160;        }</div>
<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160;        <span class="comment">/* We can&#39;t create a new input */</span></div>
<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for read of an analog input.\n\r&quot;</span>);</div>
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>&#160;    }</div>
<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160;}</div>
<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>&#160;</div>
<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_AddAnalogInput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__command__state.html#ga7dc77fb2cb66a1b11d987bdc8c75c060">isADCSampling</a>() == <a class="code" href="group__data__types.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>) {</div>
<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>&#160;        <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#gaf0d093bb26c186189433bbd8007cf0c0">NUM_ADD_ANALOG_INPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga436d10e43feb396c9f5e4d3ef5d510f5">ADD_ANALOG_INPUT_PARAMS</a>) == <span class="keyword">true</span>) {</div>
<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;            <span class="comment">/* Create a new input */</span></div>
<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>&#160;            <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__analog__input.html#gacdd326a56de1d837605d610cc638a959">CreateAnalogInput</a>(keys, values, count);</div>
<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160;            <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>&#160;                <span class="comment">/* Something went wrong with creating the input */</span></div>
<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] Creating a new analog input failed with error: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span>&#160;                        <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01434"></a><span class="lineno"> 1434</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>&#160;<span class="preprocessor"></span>                lastFunctionError = status;</div>
<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>&#160;            }</div>
<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>&#160;            <span class="comment">/* We can&#39;t create a new input */</span></div>
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for creation of a new analog input.\n\r&quot;</span>);</div>
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297">ERR_COMMAND_PARSE_ERROR</a>;</div>
<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>&#160;        }</div>
<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span>&#160;        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a53cb1f7d18c7a7e2f95b7700b4273f9f">ERR_COMMAND_ADC_INVALID_OPERATION</a>;</div>
<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>&#160;    }</div>
<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>&#160;}</div>
<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>&#160;</div>
<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_RemoveAnalogInput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__command__state.html#ga7dc77fb2cb66a1b11d987bdc8c75c060">isADCSampling</a>() == <a class="code" href="group__data__types.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>) {</div>
<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>&#160;        <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#gac7fdbccfbee444562e69bbdc64b3d92d">NUM_REMOVE_ANALOG_INPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga9bb48c8ce63d89ea1aab20833fbd9691">REMOVE_ANALOG_INPUT_PARAMS</a>)) {</div>
<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>&#160;            <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__analog__input.html#ga221c8c5a1bbe659d613fa81a6a834dd9">RemoveAnalogInput</a>(keys, values, count);</div>
<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>&#160;            <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>&#160;                <span class="comment">/* Something went wrong with removing the input */</span></div>
<div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] Removing an analog input failed with error code: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>&#160;                        <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>&#160;<span class="preprocessor"></span>                lastFunctionError = status;</div>
<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>&#160;            }</div>
<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>&#160;            <span class="comment">/* We can&#39;t delete an input */</span></div>
<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for removal of an analog input.\n\r&quot;</span>);</div>
<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>&#160;        }</div>
<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>&#160;        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a53cb1f7d18c7a7e2f95b7700b4273f9f">ERR_COMMAND_ADC_INVALID_OPERATION</a>;</div>
<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>&#160;    }</div>
<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>&#160;}</div>
<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>&#160;</div>
<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_CheckAnalogInput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>&#160;    <span class="comment">/* TODO: Fill in this method */</span></div>
<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>&#160;}</div>
<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>&#160;</div>
<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SystemGainCal(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01511"></a><span class="lineno"> 1511</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#ga5ee0ee8ce38b367ad3e68b77020ddc66">NUM_SYSTEM_GCAL_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga12cbb3a7ff1264641a75db037130c062">SYSTEM_GCAL_PARAMS</a>)) {</div>
<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>&#160;        <span class="comment">/* Perform a system gain calibration */</span></div>
<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>&#160;        <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__tekdaqc__calibration.html#ga65885f14ff00d87bd3ca21265e7d26f6">PerformSystemGainCalibration</a>(keys, values, count);</div>
<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>&#160;        <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>&#160;            lastFunctionError = status;</div>
<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>&#160;            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>&#160;        }</div>
<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for performing a system gain calibration.\n\r&quot;</span>);</div>
<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>&#160;    }</div>
<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>&#160;}</div>
<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>&#160;</div>
<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SystemCal(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160;        uint8_t count) {</div>
<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__tekdaqc__calibration.html#ga8aa6dd97a6551e9ca12b12439eec2332">PerformSystemCalibration</a>();</div>
<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160;    <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160;        lastFunctionError = status;</div>
<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160;        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160;    }</div>
<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;}</div>
<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160;</div>
<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ListDigitalInputs(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#ga5ad550260c3e06471bddb5c3a8aaba04">NUM_LIST_DIGITAL_INPUTS_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga37e4457ed0cb0dabb34ffcd740d59ed7">LIST_DIGITAL_INPUTS_PARAMS</a>)) {</div>
<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160;        <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__digital__input.html#gaf5dbc88e9aa5cee34b35d908a2e61276">ListDigitalInputs</a>();</div>
<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160;        <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Listing of digital inputs failed with error: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160;                    <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160;<span class="preprocessor"></span>            lastFunctionError = status;</div>
<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160;            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;        }</div>
<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>&#160;        <span class="comment">/* We can&#39;t create a new input */</span></div>
<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for listing the digital inputs.\n\r&quot;</span>);</div>
<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>&#160;    }</div>
<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>&#160;}</div>
<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>&#160;</div>
<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ReadDigitalInput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#gae9468d3d4d92a32a998fa97c0075db48">NUM_READ_DIGITAL_INPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga26d009205a856ee4c4c6e6c3b363f188">READ_DIGITAL_INPUT_PARAMS</a>)) {</div>
<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>&#160;        int32_t numSamples = 0;</div>
<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160;        <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type = 0;</div>
<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160;        int8_t index = -1;</div>
<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="group__command__interpreter.html#gae9468d3d4d92a32a998fa97c0075db48">NUM_READ_DIGITAL_INPUT_PARAMS</a>; ++i) {</div>
<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160;            index = <a class="code" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a>(keys, <a class="code" href="group__command__interpreter.html#ga26d009205a856ee4c4c6e6c3b363f188">READ_DIGITAL_INPUT_PARAMS</a>[i], count);</div>
<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160;            <span class="keywordflow">if</span> (index &gt;= 0) { <span class="comment">/* We found the key in the list */</span></div>
<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160;                <span class="keywordflow">switch</span> (i) { <span class="comment">/*Switch on the key not position in arguments list */</span></div>
<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160;                    <span class="keywordflow">case</span> 0: <span class="comment">/* INPUT key */</span></div>
<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;Processing INPUT key\n\r&quot;</span>);</div>
<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160;<span class="preprocessor"></span>                        list_type = GetChannelListType(values[index]);</div>
<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160;                        BuildDigitalInputList(list_type, values[index]);</div>
<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160;                    <span class="keywordflow">case</span> 1: <span class="comment">/* NUMBER key */</span></div>
<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;Processing NUMBER key\n\r&quot;</span>);</div>
<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>&#160;<span class="preprocessor"></span>                        numSamples = strtol(values[index], NULL, 10);</div>
<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160;                    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160;                        <span class="comment">/* Return error */</span></div>
<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160;                        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297">ERR_COMMAND_PARSE_ERROR</a>;</div>
<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160;                }</div>
<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160;            }</div>
<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160;            <span class="keywordflow">if</span> (retval != <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) { <span class="comment">/* If there was an error, don&#39;t both continuing. */</span></div>
<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160;            }</div>
<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160;        }</div>
<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160;        <span class="keywordflow">if</span> (retval == <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) { <span class="comment">/* If an error occurred, don&#39;t bother continuing */</span></div>
<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160;            <span class="keywordflow">for</span> (uint_fast8_t i = 0; i &lt; NUM_DIGITAL_INPUTS; ++i) {</div>
<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160;                <span class="keywordflow">if</span> (dInputs[i] != NULL) {</div>
<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160;                    <span class="keywordflow">if</span> (dInputs[i]-&gt;added == <a class="code" href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131a4ecfadabb635f0b5dd33b66498b2d04f">CHANNEL_NOTADDED</a>) {</div>
<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>&#160;                        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>&#160;                        lastFunctionError = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ad3630050d57231d48a260d4b4a4ac4d1">ERR_DIN_INPUT_NOT_FOUND</a>;</div>
<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>&#160;                    }</div>
<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>&#160;                }</div>
<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>&#160;            }</div>
<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>&#160;        }</div>
<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>&#160;        <span class="keywordflow">if</span> (retval == <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) {</div>
<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>&#160;            <span class="keywordflow">switch</span> (list_type) {</div>
<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a>:</div>
<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>&#160;                    <a class="code" href="group__di__statemachine.html#gac2e52e7ee418f5ee8301fbf6baecd207">DI_Machine_Input_Sample</a>(dInputs, numSamples, <span class="keyword">true</span>);</div>
<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a>:</div>
<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160;                    <a class="code" href="group__di__statemachine.html#gac2e52e7ee418f5ee8301fbf6baecd207">DI_Machine_Input_Sample</a>(dInputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a>:</div>
<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160;                    <a class="code" href="group__di__statemachine.html#gac2e52e7ee418f5ee8301fbf6baecd207">DI_Machine_Input_Sample</a>(dInputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>:</div>
<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160;                    <a class="code" href="group__di__statemachine.html#gac2e52e7ee418f5ee8301fbf6baecd207">DI_Machine_Input_Sample</a>(dInputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>&#160;                <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160;                    <span class="comment">/* Return an error */</span></div>
<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160;                    retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160;            }</div>
<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160;            <a class="code" href="group__command__state.html#ga95ad2a64f10746852d523bed46b0d328">CommandStateMoveToDigitalInputSample</a>();</div>
<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160;        }</div>
<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160;    }</div>
<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160;}</div>
<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>&#160;</div>
<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_AddDigitalInput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__command__state.html#gab0e295861dce43803feb4bf235dedf71">isDISampling</a>() == <a class="code" href="group__data__types.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>) {</div>
<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>&#160;        <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#ga9c5c1af739a3a4edde8cdb7af7df1ec5">NUM_ADD_DIGITAL_INPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga02032c0b60b605fe89dc910a27e12582">ADD_DIGITAL_INPUT_PARAMS</a>) == <span class="keyword">true</span>) {</div>
<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>&#160;            <span class="comment">/* Create a new input */</span></div>
<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>&#160;            <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__digital__input.html#ga5b4bb29221f6aafe926340eafcf7f722">CreateDigitalInput</a>(keys, values, count);</div>
<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>&#160;            <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>&#160;                <span class="comment">/* Something went wrong with creating the input */</span></div>
<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] Creating a new digital input failed with error code: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>&#160;                        <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>&#160;<span class="preprocessor"></span>                lastFunctionError = status;</div>
<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160;            }</div>
<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;            <span class="comment">/* We can&#39;t create a new input */</span></div>
<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for creation of a new digital input.\n\r&quot;</span>);</div>
<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160;        }</div>
<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160;        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a1944910c8a33fa83ea999c0e83b21add">ERR_COMMAND_DI_INVALID_OPERATION</a>;</div>
<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>&#160;    }</div>
<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>&#160;}</div>
<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>&#160;</div>
<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_RemoveDigitalInput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__command__state.html#gab0e295861dce43803feb4bf235dedf71">isDISampling</a>() == <a class="code" href="group__data__types.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>) {</div>
<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;        <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#ga6096182153b5f1ed0b7c7f02337c1782">NUM_REMOVE_DIGITAL_INPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga26930165286ff4adccafca5650b4b4cf">REMOVE_DIGITAL_INPUT_PARAMS</a>)) {</div>
<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;            <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__digital__input.html#ga3b0d15fea40d84eaf677d216e1530d89">RemoveDigitalInput</a>(keys, values, count);</div>
<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160;            <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>&#160;                <span class="comment">/* Something went wrong with removing the input */</span></div>
<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] Removing a digital input failed with error code: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160;                        <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>&#160;<span class="preprocessor"></span>                lastFunctionError = status;</div>
<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>&#160;            }</div>
<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>&#160;            <span class="comment">/* We can&#39;t delete an input */</span></div>
<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for removal of a digital input.\n\r&quot;</span>);</div>
<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>&#160;        }</div>
<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>&#160;        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a1944910c8a33fa83ea999c0e83b21add">ERR_COMMAND_DI_INVALID_OPERATION</a>;</div>
<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>&#160;    }</div>
<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>&#160;}</div>
<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>&#160;</div>
<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ListDigitalOutputs(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01738"></a><span class="lineno"> 1738</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#ga3d5083d6431df96a397de8cfad75d3b4">NUM_LIST_DIGITAL_OUTPUTS_PARAMS</a>, <a class="code" href="group__command__interpreter.html#gad3444869609f37e2fcb9ca55ac0b53ef">LIST_DIGITAL_OUTPUTS_PARAMS</a>)) {</div>
<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>&#160;        <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__digital__output.html#ga3310818e215cffd25126906b9215e46b">ListDigitalOutputs</a>();</div>
<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>&#160;        <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Listing of digital outputs failed with error: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>&#160;                    <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span>&#160;<span class="preprocessor"></span>            lastFunctionError = status;</div>
<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>&#160;            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>&#160;        }</div>
<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span>&#160;        <span class="comment">/* We can&#39;t create a new input */</span></div>
<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01752"></a><span class="lineno"> 1752</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for listing the digital outputs.\n\r&quot;</span>);</div>
<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>&#160;    }</div>
<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>&#160;}</div>
<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>&#160;</div>
<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SetDigitalOutput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#gaac55dd13b66c6ed14773e930596be11e">NUM_SET_DIGITAL_OUTPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#gade511743b3ecf569a2e74c1b14291a5b">SET_DIGITAL_OUTPUT_PARAMS</a>)) {</div>
<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160;        <span class="comment">/* Set digital output */</span></div>
<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160;        <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__digital__output.html#ga7f6d7f4a8ed42dfa380728cad94dbc28">SetDigitalOutput</a>(keys, values, count);</div>
<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>&#160;        <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>&#160;            <span class="comment">/* Something went wrong with setting the output */</span></div>
<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Setting digital output failed with error code: %i.\n\r&quot;</span>, status);</div>
<div class="line"><a name="l01777"></a><span class="lineno"> 1777</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>&#160;<span class="preprocessor"></span>            lastFunctionError = status;</div>
<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>&#160;            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>&#160;        }</div>
<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>&#160;        <span class="comment">/* We can&#39;t set an output */</span></div>
<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for setting a digital output.\n\r&quot;</span>);</div>
<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>&#160;    }</div>
<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span>&#160;}</div>
<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span>&#160;</div>
<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ReadDigitalOutput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#ga8e7fef9c50e4a2992d7ac233d7e65510">NUM_READ_DIGITAL_OUTPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga4f49602cd24e42a37f7509d5fc24ff34">READ_DIGITAL_OUTPUT_PARAMS</a>)) {</div>
<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>&#160;        int32_t numSamples = 0;</div>
<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>&#160;        <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a> list_type = 0;</div>
<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>&#160;        int8_t index = -1;</div>
<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="group__command__interpreter.html#ga8e7fef9c50e4a2992d7ac233d7e65510">NUM_READ_DIGITAL_OUTPUT_PARAMS</a>; ++i) {</div>
<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>&#160;            index = <a class="code" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a>(keys, <a class="code" href="group__command__interpreter.html#ga4f49602cd24e42a37f7509d5fc24ff34">READ_DIGITAL_OUTPUT_PARAMS</a>[i], count);</div>
<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>&#160;            <span class="keywordflow">if</span> (index &gt;= 0) { <span class="comment">/* We found the key in the list */</span></div>
<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>&#160;                <span class="keywordflow">switch</span> (i) { <span class="comment">/* Switch on the key not position in arguments list */</span></div>
<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>&#160;                    <span class="keywordflow">case</span> 0: <span class="comment">/* INPUT key */</span></div>
<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;Processing INPUT key\n\r&quot;</span>);</div>
<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>&#160;<span class="preprocessor"></span>                        list_type = GetChannelListType(values[index]);</div>
<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>&#160;                        BuildDigitalOutputList(list_type, values[index]);</div>
<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>&#160;                    <span class="keywordflow">case</span> 1: <span class="comment">/* NUMBER key */</span></div>
<div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;Processing NUMBER key\n\r&quot;</span>);</div>
<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>&#160;<span class="preprocessor"></span>                        numSamples = strtol(values[index], NULL, 10);</div>
<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>&#160;                    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>&#160;                        <span class="comment">/* Return error */</span></div>
<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>&#160;                        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297">ERR_COMMAND_PARSE_ERROR</a>;</div>
<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>&#160;                }</div>
<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>&#160;            }</div>
<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>&#160;            <span class="keywordflow">if</span> (retval != <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) {</div>
<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>&#160;            }</div>
<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>&#160;        }</div>
<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>&#160;        <span class="keywordflow">if</span> (retval == <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) {</div>
<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>&#160;            <span class="keywordflow">switch</span> (list_type) {</div>
<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a>:</div>
<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>&#160;                    <a class="code" href="group__do__statemachine.html#ga2314b594125edbaaac497a4466ac478a">DO_Machine_Output_Sample</a>(dOutputs, numSamples, <span class="keyword">true</span>);</div>
<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a>:</div>
<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>&#160;                    <a class="code" href="group__do__statemachine.html#ga2314b594125edbaaac497a4466ac478a">DO_Machine_Output_Sample</a>(dOutputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a>:</div>
<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>&#160;                    <a class="code" href="group__do__statemachine.html#ga2314b594125edbaaac497a4466ac478a">DO_Machine_Output_Sample</a>(dOutputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>:</div>
<div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>&#160;                    <a class="code" href="group__do__statemachine.html#ga2314b594125edbaaac497a4466ac478a">DO_Machine_Output_Sample</a>(dOutputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>&#160;                <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>&#160;                    <span class="comment">/* Return an error */</span></div>
<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>&#160;                    retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>&#160;            }</div>
<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>&#160;            <a class="code" href="group__command__state.html#gae7be822d5262fbf48e51ffae98733aec">CommandStateMoveToDigitalOutputSample</a>();</div>
<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>&#160;        }</div>
<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>&#160;        <span class="comment">/* We can&#39;t read an output */</span></div>
<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for reading a digital output.\n\r&quot;</span>);</div>
<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>&#160;    }</div>
<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>&#160;}</div>
<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>&#160;</div>
<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_AddDigitalOutput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__command__state.html#gaf69a154f2311c13883ebbe0c1de90d44">isDOSampling</a>() == <a class="code" href="group__data__types.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>) {</div>
<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span>&#160;        <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#gadea8918a215685b1576f95e1fb754778">NUM_ADD_DIGITAL_OUTPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#gaf583eedd117e9397b34163b0ed4791c3">ADD_DIGITAL_OUTPUT_PARAMS</a>)) {</div>
<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>&#160;            <span class="comment">/* Create a new input */</span></div>
<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>&#160;            <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__digital__output.html#gad98544b3d86d168290b487808e58142f">CreateDigitalOutput</a>(keys, values, count);</div>
<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>&#160;            <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>&#160;                <span class="comment">/* Something went wrong with creating the output */</span></div>
<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] Creating a new digital output failed with error code: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>&#160;                        <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01883"></a><span class="lineno"> 1883</span>&#160;<span class="preprocessor"></span>                lastFunctionError = status;</div>
<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>&#160;            }</div>
<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>&#160;            <span class="comment">/* We can&#39;t create a new output */</span></div>
<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for creation of a new digital output.\n\r&quot;</span>);</div>
<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>&#160;        }</div>
<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>&#160;        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a0b3f4f2e4d33d07265fa3731da328514">ERR_COMMAND_DO_INVALID_OPERATION</a>;</div>
<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>&#160;    }</div>
<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>&#160;}</div>
<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>&#160;</div>
<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_RemoveDigitalOutput(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="group__command__state.html#gaf69a154f2311c13883ebbe0c1de90d44">isDOSampling</a>() == <a class="code" href="group__data__types.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>) {</div>
<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>&#160;        <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count,</div>
<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>&#160;        <a class="code" href="group__command__interpreter.html#gaab1534ae5702e990bfdc0f8c85094df0">NUM_REMOVE_DIGITAL_OUTPUT_PARAMS</a>, <a class="code" href="group__command__interpreter.html#gab8e88e0e75930f03474e1ff9e232ef63">REMOVE_DIGITAL_OUTPUT_PARAMS</a>)) {</div>
<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>&#160;            <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> status = <a class="code" href="group__digital__output.html#ga3ae9f85352ddfe3c29046f9d3b068d64">RemoveDigitalOutput</a>(keys, values, count);</div>
<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>&#160;            <span class="keywordflow">if</span> (status != <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>) {</div>
<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>&#160;                <span class="comment">/* Something went wrong with removing the input */</span></div>
<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>&#160;<span class="preprocessor"></span>                printf(<span class="stringliteral">&quot;[Command Interpreter] Removing an digital output failed with error code: %s.\n\r&quot;</span>,</div>
<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>&#160;                        <a class="code" href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a>(status));</div>
<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>&#160;<span class="preprocessor"></span>                lastFunctionError = status;</div>
<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>&#160;                retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a>;</div>
<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>&#160;            }</div>
<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>&#160;            <span class="comment">/* We can&#39;t delete an output */</span></div>
<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>&#160;<span class="preprocessor"></span>            printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for removal of an digital output.\n\r&quot;</span>);</div>
<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>&#160;<span class="preprocessor"></span>            retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>&#160;        }</div>
<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span>&#160;        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a0b3f4f2e4d33d07265fa3731da328514">ERR_COMMAND_DO_INVALID_OPERATION</a>;</div>
<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>&#160;    }</div>
<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>&#160;}</div>
<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>&#160;</div>
<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_ClearDigitalOutputFault(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>&#160;</div>
<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>&#160;    <span class="comment">/* TODO: Clear digital faults */</span></div>
<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>&#160;</div>
<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>&#160;}</div>
<div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>&#160;</div>
<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_Sample(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>&#160;        uint8_t count) {</div>
<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>&#160;    <span class="keywordflow">if</span> (InputArgsCheck(keys, values, count, <a class="code" href="group__command__interpreter.html#ga1fc6732ec779877a349a53c180c22c29">NUM_SAMPLE_PARAMS</a>, <a class="code" href="group__command__interpreter.html#ga7008aaf205ddd844e0a5affd12a08775">SAMPLE_PARAMS</a>)) {</div>
<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>&#160;        int32_t numSamples = 0;</div>
<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>&#160;        int8_t index = -1;</div>
<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="group__command__interpreter.html#ga1fc6732ec779877a349a53c180c22c29">NUM_SAMPLE_PARAMS</a>; ++i) {</div>
<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span>&#160;            index = <a class="code" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a>(keys, <a class="code" href="group__command__interpreter.html#ga7008aaf205ddd844e0a5affd12a08775">SAMPLE_PARAMS</a>[i], count);</div>
<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>&#160;            <span class="keywordflow">if</span> (index &gt;= 0) { <span class="comment">/* We found the key in the list */</span></div>
<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span>&#160;                <span class="keywordflow">switch</span> (i) { <span class="comment">/* Switch on the key not position in arguments list */</span></div>
<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span>&#160;                    <span class="keywordflow">case</span> 0: <span class="comment">/* NUMBER key */</span></div>
<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01973"></a><span class="lineno"> 1973</span>&#160;<span class="preprocessor"></span>                        printf(<span class="stringliteral">&quot;Processing NUMBER key\n\r&quot;</span>);</div>
<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>&#160;<span class="preprocessor"></span>                        numSamples = (int32_t) strtol(values[index], NULL, 10);</div>
<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>&#160;                    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>&#160;                        <span class="comment">/* Return an error */</span></div>
<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>&#160;                        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297">ERR_COMMAND_PARSE_ERROR</a>;</div>
<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>&#160;                }</div>
<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>&#160;            }</div>
<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span>&#160;            <span class="keywordflow">if</span> (retval != <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) {</div>
<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>&#160;                <span class="keywordflow">break</span>; <span class="comment">/* If an error occurred, don&#39;t bother continuing */</span></div>
<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>&#160;            }</div>
<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>&#160;        }</div>
<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>&#160;        <span class="keywordflow">if</span> (retval == <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>) { <span class="comment">/* If an error occurred, don&#39;t bother continuing */</span></div>
<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>&#160;            BuildAnalogInputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>, NULL);</div>
<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span>&#160;            BuildDigitalInputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>, NULL);</div>
<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span>&#160;            BuildDigitalOutputList(<a class="code" href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a>, NULL);</div>
<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span>&#160;            <a class="code" href="group__adc__statemachine.html#ga979620e2e4743c8f5d1f053a90705841">ADC_Machine_Input_Sample</a>(aInputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01991"></a><span class="lineno"> 1991</span>&#160;            <a class="code" href="group__di__statemachine.html#gac2e52e7ee418f5ee8301fbf6baecd207">DI_Machine_Input_Sample</a>(dInputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>&#160;            <a class="code" href="group__do__statemachine.html#ga2314b594125edbaaac497a4466ac478a">DO_Machine_Output_Sample</a>(dOutputs, numSamples, <span class="keyword">false</span>);</div>
<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>&#160;            <a class="code" href="group__command__state.html#ga62da533cf3e918233a8245c42959d0e5">CommandStateMoveToGeneralSample</a>();</div>
<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>&#160;        }</div>
<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>&#160;        <span class="comment">/* We can&#39;t create a new input */</span></div>
<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>&#160;<span class="preprocessor">#ifdef COMMAND_DEBUG</span></div>
<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>&#160;<span class="preprocessor"></span>        printf(<span class="stringliteral">&quot;[Command Interpreter] Provided arguments are not valid for read of an analog input.\n\r&quot;</span>);</div>
<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>&#160;<span class="preprocessor"></span>        retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a>;</div>
<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>&#160;    }</div>
<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>&#160;}</div>
<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>&#160;</div>
<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_Identify(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l02014"></a><span class="lineno"> 2014</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* serial = <a class="code" href="group__tekdaqc__locator.html#gae38557024fc843c693d4b6f2cdb5d097">Tekdaqc_GetLocatorBoardID</a>();</div>
<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>&#160;    <span class="keywordflow">if</span> (serial == <span class="charliteral">&#39;\0&#39;</span>) {</div>
<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span>&#160;        serial = ((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*) <span class="stringliteral">&quot;None&quot;</span>);</div>
<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>&#160;    }</div>
<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>&#160;    uint8_t type = <a class="code" href="group__tekdaqc__locator.html#ga573f8960093dc2ab0cc4c88b8f8c6ff9">Tekdaqc_GetLocatorBoardType</a>();</div>
<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>&#160;    uint32_t ip = <a class="code" href="group__tekdaqc__locator.html#gaf8eaedaeca86f0d5c7af113faebe16a0">Tekdaqc_GetLocatorIp</a>();</div>
<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* MAC = <a class="code" href="group__tekdaqc__locator.html#ga03c9656c9876829e12f617d4e4abef04">Tekdaqc_GetLocatorMAC</a>();</div>
<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span>&#160;    uint32_t version = <a class="code" href="group__tekdaqc__locator.html#ga502ebd4cceffc0fa3a7abefc7f79b42a">Tekdaqc_GetLocatorVersion</a>();</div>
<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>&#160;    uint32_t count = 0;</div>
<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>&#160;    count = snprintf(TOSTRING_BUFFER, <span class="keyword">sizeof</span>(TOSTRING_BUFFER), <span class="stringliteral">&quot;Board Identity&quot;</span>);</div>
<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>&#160;    count += snprintf(TOSTRING_BUFFER + count, 51 * <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>), <span class="stringliteral">&quot;\n\r\tSerial Number: %s&quot;</span>, serial);</div>
<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>&#160;    count -= 2;</div>
<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>&#160;    count += snprintf(TOSTRING_BUFFER + count, <span class="keyword">sizeof</span>(TOSTRING_BUFFER),</div>
<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>&#160;            <span class="stringliteral">&quot;\n\r\tBoard Revision: %c\n\r\tFirmware Version: %lu.%lu.%lu.%lu&quot;</span>, (<span class="keywordtype">char</span>) type, (version &amp; 0xff),</div>
<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>&#160;            ((version &gt;&gt; 8) &amp; 0xff), ((version &gt;&gt; 16) &amp; 0xff), ((version &gt;&gt; 24) &amp; 0xff));</div>
<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>&#160;    count += snprintf(TOSTRING_BUFFER + count, <span class="keyword">sizeof</span>(TOSTRING_BUFFER), <span class="stringliteral">&quot;\n\r\tIP Address: %lu.%lu.%lu.%lu&quot;</span>, ip &amp; 0xff,</div>
<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>&#160;            (ip &gt;&gt; 8) &amp; 0xff, (ip &gt;&gt; 16) &amp; 0xff, (ip &gt;&gt; 24) &amp; 0xff);</div>
<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span>&#160;    count += snprintf(TOSTRING_BUFFER + count, <span class="keyword">sizeof</span>(TOSTRING_BUFFER),</div>
<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span>&#160;            <span class="stringliteral">&quot;\n\r\tMAC Address: %02X:%02X:%02X:%02X:%02X:%02X\n\r&quot;</span>, *MAC, *(MAC + 1), *(MAC + 2), *(MAC + 3),</div>
<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span>&#160;            *(MAC + 4), *(MAC + 5));</div>
<div class="line"><a name="l02035"></a><span class="lineno"> 2035</span>&#160;    <a class="code" href="group__telnet__server.html#ga0afb5de5ce2d81cdc5322e0534bae1d8">TelnetWriteStatusMessage</a>(TOSTRING_BUFFER);</div>
<div class="line"><a name="l02036"></a><span class="lineno"> 2036</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l02037"></a><span class="lineno"> 2037</span>&#160;}</div>
<div class="line"><a name="l02038"></a><span class="lineno"> 2038</span>&#160;</div>
<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SetRTC(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l02048"></a><span class="lineno"> 2048</span>&#160;        uint8_t count) {</div>
<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l02050"></a><span class="lineno"> 2050</span>&#160;</div>
<div class="line"><a name="l02051"></a><span class="lineno"> 2051</span>&#160;    <span class="comment">/* TODO: Set RTC */</span></div>
<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>&#160;</div>
<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>&#160;}</div>
<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span>&#160;</div>
<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SetUserMac(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH], <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>&#160;        uint8_t count) {</div>
<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>&#160;</div>
<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>&#160;    <span class="comment">/* TODO: Clear user MAC */</span></div>
<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>&#160;</div>
<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>&#160;}</div>
<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>&#160;</div>
<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_SetStaticIP(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>&#160;</div>
<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>&#160;    <span class="comment">/* TODO: Set static IP */</span></div>
<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>&#160;</div>
<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>&#160;}</div>
<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>&#160;</div>
<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>&#160;<span class="keyword">static</span> <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> Ex_GetCalibrationStatus(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH],</div>
<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>&#160;        <span class="keywordtype">char</span> values[][MAX_COMMANDPART_LENGTH], uint8_t count) {</div>
<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a> retval = <a class="code" href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a>;</div>
<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>&#160;    <span class="keywordtype">bool</span> valid = <a class="code" href="group__tekdaqc__calibration.html#gae09f531b1b83f3e80e981f14bfc27261">isTekdaqc_CalibrationValid</a>();</div>
<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>&#160;    count = snprintf(TOSTRING_BUFFER, <span class="keyword">sizeof</span>(TOSTRING_BUFFER), <span class="stringliteral">&quot;Calibration Status: %s&quot;</span>,</div>
<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>&#160;            (valid == <span class="keyword">true</span>) ? <span class="stringliteral">&quot;VALID&quot;</span> : <span class="stringliteral">&quot;INVALID&quot;</span>);</div>
<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>&#160;    <a class="code" href="group__telnet__server.html#ga0afb5de5ce2d81cdc5322e0534bae1d8">TelnetWriteStatusMessage</a>(TOSTRING_BUFFER);</div>
<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>&#160;}</div>
<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>&#160;</div>
<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>&#160;<span class="comment">/* PUBLIC FUNCTIONS */</span></div>
<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>&#160;<span class="comment">/*--------------------------------------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>&#160;</div>
<div class="line"><a name="l02118"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga8a32c543f87d40b158c3007b8ab8b525"> 2118</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__command__interpreter.html#ga8a32c543f87d40b158c3007b8ab8b525">CreateCommandInterpreter</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span>&#160;    <a class="code" href="group__command__interpreter.html#ga1958dfed537e8e071b08b488b5911575">ClearCommandBuffer</a>();</div>
<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>&#160;}</div>
<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>&#160;</div>
<div class="line"><a name="l02128"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga1958dfed537e8e071b08b488b5911575"> 2128</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__command__interpreter.html#ga1958dfed537e8e071b08b488b5911575">ClearCommandBuffer</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>&#160;    <span class="keywordflow">for</span> (uint_fast8_t i = 0; i &lt; <a class="code" href="group__command__parser.html#gaab74dfff7eb006955f2aabec581f8d9f">MAX_COMMANDLINE_LENGTH</a>; ++i) {</div>
<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>&#160;        interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>[i] = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span>&#160;    }</div>
<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>&#160;    interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a> = 0U;</div>
<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>&#160;}</div>
<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>&#160;</div>
<div class="line"><a name="l02141"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#gae17b8153644216734412b48e52b760d3"> 2141</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__command__interpreter.html#gae17b8153644216734412b48e52b760d3">Command_AddChar</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> character) {</div>
<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>&#160;    <span class="keywordflow">if</span> (character != 0x00 &amp;&amp; interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a> &lt; <a class="code" href="group__command__parser.html#gaab74dfff7eb006955f2aabec581f8d9f">MAX_COMMANDLINE_LENGTH</a>) {</div>
<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>&#160;        <span class="keywordflow">if</span> (character == 0x0A || character == 0x0D) {</div>
<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>&#160;            <span class="comment">/* We have reached the end of a command, parse it */</span></div>
<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>&#160;            Command_ParseLine();</div>
<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>&#160;            <span class="comment">/* Clear the command buffer */</span></div>
<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>&#160;            <a class="code" href="group__command__interpreter.html#ga1958dfed537e8e071b08b488b5911575">ClearCommandBuffer</a>();</div>
<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (character == 0x08 || character == 0x7F) {</div>
<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>&#160;            <span class="comment">/* Remove the last character from the buffer */</span></div>
<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span>&#160;            <span class="keywordflow">if</span> (interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a> &gt; 0) {</div>
<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>&#160;                --interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a>; <span class="comment">/* Move the list back one */</span></div>
<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>&#160;                interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>[interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a>] = <span class="charliteral">&#39;\0&#39;</span>; <span class="comment">/* Set the current position to a null character */</span></div>
<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>&#160;            }</div>
<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (character == 0x20) {</div>
<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>&#160;            <span class="keywordflow">if</span> (interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a> &gt; 0</div>
<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>&#160;                    &amp;&amp; interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>[interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a> - 1] != 0x20) {</div>
<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>&#160;                <span class="comment">/* Add another character to the buffer */</span></div>
<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>&#160;                interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>[interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a>] = character; <span class="comment">/* Add the character at the current position */</span></div>
<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>&#160;                ++interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a>; <span class="comment">/* Move the buffer pointer to the next position */</span></div>
<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>&#160;            }</div>
<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>&#160;            <span class="comment">/* If the previous character is a space, ignore further spaces */</span></div>
<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>&#160;            <span class="comment">/* Add another character to the buffer */</span></div>
<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>&#160;            interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">command_buffer</a>[interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a>] = character; <span class="comment">/* Add the character at the current position */</span></div>
<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>&#160;            ++interpreter.<a class="code" href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">buffer_position</a>; <span class="comment">/* Move the buffer pointer to the next position */</span></div>
<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>&#160;        }</div>
<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>&#160;    }</div>
<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>&#160;}</div>
<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>&#160;</div>
<div class="line"><a name="l02176"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga507d74a3df649ff693df84ae46e9b696"> 2176</a></span>&#160;<a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> <a class="code" href="group__command__interpreter.html#ga507d74a3df649ff693df84ae46e9b696">GetLastFunctionError</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>&#160;    <a class="code" href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a> retval = lastFunctionError;</div>
<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>&#160;    lastFunctionError = <a class="code" href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a>;</div>
<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>&#160;    <span class="keywordflow">return</span> retval;</div>
<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>&#160;}</div>
<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>&#160;</div>
<div class="line"><a name="l02190"></a><span class="lineno"><a class="line" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191"> 2190</a></span>&#160;int8_t <a class="code" href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a>(<span class="keywordtype">char</span> keys[][MAX_COMMANDPART_LENGTH], <span class="keyword">const</span> <span class="keywordtype">char</span>* target, uint8_t total) {</div>
<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>&#160;    int8_t index = -1;</div>
<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>&#160;    <span class="keywordflow">for</span> (uint_fast8_t i = 0U; i &lt; total; ++i) {</div>
<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>&#160;        <span class="keywordflow">if</span> (strcmp(keys[i], target) == 0) {</div>
<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>&#160;            <span class="comment">/* Match found */</span></div>
<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>&#160;            index = i;</div>
<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>&#160;        }</div>
<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>&#160;    }</div>
<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>&#160;    <span class="keywordflow">return</span> index;</div>
<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>&#160;}</div>
<div class="ttc" id="group__command__interpreter_html_ga02032c0b60b605fe89dc910a27e12582"><div class="ttname"><a href="group__command__interpreter.html#ga02032c0b60b605fe89dc910a27e12582">ADD_DIGITAL_INPUT_PARAMS</a></div><div class="ttdeci">const char * ADD_DIGITAL_INPUT_PARAMS[NUM_ADD_DIGITAL_INPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00172">Tekdaqc_CommandInterpreter.c:172</a></div></div>
<div class="ttc" id="boolean_8h_html"><div class="ttname"><a href="boolean_8h.html">boolean.h</a></div><div class="ttdoc">Header file for the custom boolean data type. </div></div>
<div class="ttc" id="group__command__interpreter_html_ga40f7ab5c778b33671146878fe6bd8191"><div class="ttname"><a href="group__command__interpreter.html#ga40f7ab5c778b33671146878fe6bd8191">GetIndexOfArgument</a></div><div class="ttdeci">int8_t GetIndexOfArgument(char keys[][MAX_COMMANDPART_LENGTH], const char *target, uint8_t total)</div><div class="ttdoc">Gets the index of the specified argument from the list of parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l02190">Tekdaqc_CommandInterpreter.c:2190</a></div></div>
<div class="ttc" id="group__command__state_html_gaf69a154f2311c13883ebbe0c1de90d44"><div class="ttname"><a href="group__command__state.html#gaf69a154f2311c13883ebbe0c1de90d44">isDOSampling</a></div><div class="ttdeci">bool isDOSampling(void)</div><div class="ttdoc">Accessor function to check the digital output sampling status. </div><div class="ttdef"><b>Definition:</b> <a href="_command_state_8c_source.html#l00287">CommandState.c:287</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga12cbb3a7ff1264641a75db037130c062"><div class="ttname"><a href="group__command__interpreter.html#ga12cbb3a7ff1264641a75db037130c062">SYSTEM_GCAL_PARAMS</a></div><div class="ttdeci">const char * SYSTEM_GCAL_PARAMS[NUM_SYSTEM_GCAL_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00150">Tekdaqc_CommandInterpreter.c:150</a></div></div>
<div class="ttc" id="_digital___output_8h_html"><div class="ttname"><a href="_digital___output_8h.html">Digital_Output.h</a></div><div class="ttdoc">Header file for the Digital_Output_t data structure. </div></div>
<div class="ttc" id="group__command__interpreter_html_gacd4917419f347a3210e7b468c47188f0"><div class="ttname"><a href="group__command__interpreter.html#gacd4917419f347a3210e7b468c47188f0">PARAMETER_NAME</a></div><div class="ttdeci">#define PARAMETER_NAME</div><div class="ttdoc">String constant definition for the NAME parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00095">Tekdaqc_CommandInterpreter.h:95</a></div></div>
<div class="ttc" id="group__digital__output_html_ga3310818e215cffd25126906b9215e46b"><div class="ttname"><a href="group__digital__output.html#ga3310818e215cffd25126906b9215e46b">ListDigitalOutputs</a></div><div class="ttdeci">Tekdaqc_Function_Error_t ListDigitalOutputs(void)</div><div class="ttdoc">Prints a representation of all the added digital outputs. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00192">Digital_Output.c:192</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32adbd1baeb84ff2e0675efec2cfb5d677f">ERR_FUNCTION_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00074">Tekdaqc_Error.h:74</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gae9468d3d4d92a32a998fa97c0075db48"><div class="ttname"><a href="group__command__interpreter.html#gae9468d3d4d92a32a998fa97c0075db48">NUM_READ_DIGITAL_INPUT_PARAMS</a></div><div class="ttdeci">#define NUM_READ_DIGITAL_INPUT_PARAMS</div><div class="ttdoc">The number of parameters for the READ_DIGITAL_INPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00254">Tekdaqc_CommandInterpreter.h:254</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101acc7a59b80da7cc7d68564c07272e1dfc">SINGLE_CHANNEL</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00301">Tekdaqc_CommandInterpreter.c:301</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga6162173d76eb84687f453450c6973ed5"><div class="ttname"><a href="group__command__interpreter.html#ga6162173d76eb84687f453450c6973ed5">NUM_IDENTIFY_PARAMS</a></div><div class="ttdeci">#define NUM_IDENTIFY_PARAMS</div><div class="ttdoc">The number of parameters for the IDENTIFY command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00342">Tekdaqc_CommandInterpreter.h:342</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_ga9e4249e557d2ff186f09a6f941bfcaa2"><div class="ttname"><a href="group__tekdaqc__error.html#ga9e4249e557d2ff186f09a6f941bfcaa2">Tekdaqc_CommandError_ToString</a></div><div class="ttdeci">const char * Tekdaqc_CommandError_ToString(Tekdaqc_Command_Error_t error)</div><div class="ttdoc">Converts a Tekdaqc_Command_Error_t into a human readable string. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8c_source.html#l00069">Tekdaqc_Error.c:69</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaea50720799ad68731b7672c1974aae1a"><div class="ttname"><a href="group__command__interpreter.html#gaea50720799ad68731b7672c1974aae1a">GET_CALIBRATION_STATUS_PARAMS</a></div><div class="ttdeci">const char * GET_CALIBRATION_STATUS_PARAMS[NUM_GET_CALIBRATION_STATUS_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00259">Tekdaqc_CommandInterpreter.c:259</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_aea1419158fcfc7a488c6ef00d908d404a60962acf6c77e7c2d1a88009bf23a556"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404a60962acf6c77e7c2d1a88009bf23a556">MULTI_DIGITAL_OUTPUT</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00315">Tekdaqc_CommandInterpreter.c:315</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gadea8918a215685b1576f95e1fb754778"><div class="ttname"><a href="group__command__interpreter.html#gadea8918a215685b1576f95e1fb754778">NUM_ADD_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">#define NUM_ADD_DIGITAL_OUTPUT_PARAMS</div><div class="ttdoc">The number of parameters for the ADD_DIGITAL_OUTPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00302">Tekdaqc_CommandInterpreter.h:302</a></div></div>
<div class="ttc" id="group__telnet__server_html_ga0afb5de5ce2d81cdc5322e0534bae1d8"><div class="ttname"><a href="group__telnet__server.html#ga0afb5de5ce2d81cdc5322e0534bae1d8">TelnetWriteStatusMessage</a></div><div class="ttdeci">void TelnetWriteStatusMessage(char *message)</div><div class="ttdoc">Print a message to the telnet connection formatted as a status. </div><div class="ttdef"><b>Definition:</b> <a href="_telnet_server_8c_source.html#l00964">TelnetServer.c:964</a></div></div>
<div class="ttc" id="group__digital__output_html_gad98544b3d86d168290b487808e58142f"><div class="ttname"><a href="group__digital__output.html#gad98544b3d86d168290b487808e58142f">CreateDigitalOutput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t CreateDigitalOutput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], int count)</div><div class="ttdoc">Configures a digital output with the specified parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00237">Digital_Output.c:237</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga4f49602cd24e42a37f7509d5fc24ff34"><div class="ttname"><a href="group__command__interpreter.html#ga4f49602cd24e42a37f7509d5fc24ff34">READ_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">const char * READ_DIGITAL_OUTPUT_PARAMS[NUM_READ_DIGITAL_OUTPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00195">Tekdaqc_CommandInterpreter.c:195</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_ga19df05d919ecca7a7501b35ae9080a32"><div class="ttname"><a href="group__tekdaqc__error.html#ga19df05d919ecca7a7501b35ae9080a32">Tekdaqc_Function_Error_t</a></div><div class="ttdeci">Tekdaqc_Function_Error_t</div><div class="ttdoc">Tekdaqc Command sub-function error enumeration. Defines the possible error codes returned by sub-func...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00073">Tekdaqc_Error.h:73</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga1958dfed537e8e071b08b488b5911575"><div class="ttname"><a href="group__command__interpreter.html#ga1958dfed537e8e071b08b488b5911575">ClearCommandBuffer</a></div><div class="ttdeci">void ClearCommandBuffer(void)</div><div class="ttdoc">Clears the entire contents of the command parser&#39;s buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l02128">Tekdaqc_CommandInterpreter.c:2128</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gae3e466b9002fbb2a3b72a14091736c14"><div class="ttname"><a href="group__command__interpreter.html#gae3e466b9002fbb2a3b72a14091736c14">CLEAR_DIG_OUTPUT_FAULT_PARAMS</a></div><div class="ttdeci">const char * CLEAR_DIG_OUTPUT_FAULT_PARAMS[NUM_CLEAR_DIG_OUTPUT_FAULT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00213">Tekdaqc_CommandInterpreter.c:213</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga8e7fef9c50e4a2992d7ac233d7e65510"><div class="ttname"><a href="group__command__interpreter.html#ga8e7fef9c50e4a2992d7ac233d7e65510">NUM_READ_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">#define NUM_READ_DIGITAL_OUTPUT_PARAMS</div><div class="ttdoc">The number of parameters for the READ_DIGITAL_OUTPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00294">Tekdaqc_CommandInterpreter.h:294</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga37a6030d18afb1719e8b674ac3e649ec"><div class="ttname"><a href="group__command__interpreter.html#ga37a6030d18afb1719e8b674ac3e649ec">SET_RTC_PARAMS</a></div><div class="ttdeci">const char * SET_RTC_PARAMS[NUM_SET_RTC_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00244">Tekdaqc_CommandInterpreter.c:244</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32ad3630050d57231d48a260d4b4a4ac4d1"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ad3630050d57231d48a260d4b4a4ac4d1">ERR_DIN_INPUT_NOT_FOUND</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00084">Tekdaqc_Error.h:84</a></div></div>
<div class="ttc" id="group__telnet__server_html_ga7f3d87d181908e8353a67bbaf15fac50"><div class="ttname"><a href="group__telnet__server.html#ga7f3d87d181908e8353a67bbaf15fac50">TelnetWriteCommandDataMessage</a></div><div class="ttdeci">void TelnetWriteCommandDataMessage(char *message)</div><div class="ttdoc">Print a message to the telnet connection formatted as a command data message. </div><div class="ttdef"><b>Definition:</b> <a href="_telnet_server_8c_source.html#l01010">TelnetServer.c:1010</a></div></div>
<div class="ttc" id="struct_tekdaqc___command_interpreter__t_html"><div class="ttname"><a href="struct_tekdaqc___command_interpreter__t.html">Tekdaqc_CommandInterpreter_t</a></div><div class="ttdoc">Data structure for maintaining the state of the command interpreter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00169">Tekdaqc_CommandInterpreter.h:169</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gae7b1842582f0a314801b97783767e609"><div class="ttname"><a href="group__command__interpreter.html#gae7b1842582f0a314801b97783767e609">NUM_READ_ADC_REGISTERS_PARAMS</a></div><div class="ttdeci">#define NUM_READ_ADC_REGISTERS_PARAMS</div><div class="ttdoc">The number of parameters for the READ_ADC_REGISTERS command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00190">Tekdaqc_CommandInterpreter.h:190</a></div></div>
<div class="ttc" id="group__tekdaqc__configuration_html_ga7fee54fd2d4e5ad001547a64d519bdb1"><div class="ttname"><a href="group__tekdaqc__configuration.html#ga7fee54fd2d4e5ad001547a64d519bdb1">ClearToStringBuffer</a></div><div class="ttdeci">void ClearToStringBuffer(void)</div><div class="ttdoc">Clears the global TOSTRING_BUFFER data structure. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___config_8c_source.html#l00310">Tekdaqc_Config.c:310</a></div></div>
<div class="ttc" id="_tekdaqc___b_s_p_8h_html"><div class="ttname"><a href="_tekdaqc___b_s_p_8h.html">Tekdaqc_BSP.h</a></div><div class="ttdoc">Header file for the Tekdaqc. </div></div>
<div class="ttc" id="_tekdaqc___locator_8h_html"><div class="ttname"><a href="_tekdaqc___locator_8h.html">Tekdaqc_Locator.h</a></div><div class="ttdoc">Header file for the Tekdaqc Locator service. </div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a628d3a4d11e7ea7ac8c96fcbc394c297">ERR_COMMAND_PARSE_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00061">Tekdaqc_Error.h:61</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga5ee0ee8ce38b367ad3e68b77020ddc66"><div class="ttname"><a href="group__command__interpreter.html#ga5ee0ee8ce38b367ad3e68b77020ddc66">NUM_SYSTEM_GCAL_PARAMS</a></div><div class="ttdeci">#define NUM_SYSTEM_GCAL_PARAMS</div><div class="ttdoc">The number of parameters for the SYSTEM_GCAL command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00230">Tekdaqc_CommandInterpreter.h:230</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gad3444869609f37e2fcb9ca55ac0b53ef"><div class="ttname"><a href="group__command__interpreter.html#gad3444869609f37e2fcb9ca55ac0b53ef">LIST_DIGITAL_OUTPUTS_PARAMS</a></div><div class="ttdeci">const char * LIST_DIGITAL_OUTPUTS_PARAMS[NUM_LIST_DIGITAL_OUTPUTS_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00184">Tekdaqc_CommandInterpreter.c:184</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397a0b3f4f2e4d33d07265fa3731da328514"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a0b3f4f2e4d33d07265fa3731da328514">ERR_COMMAND_DO_INVALID_OPERATION</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00065">Tekdaqc_Error.h:65</a></div></div>
<div class="ttc" id="group__adc__statemachine_html_ga979620e2e4743c8f5d1f053a90705841"><div class="ttname"><a href="group__adc__statemachine.html#ga979620e2e4743c8f5d1f053a90705841">ADC_Machine_Input_Sample</a></div><div class="ttdeci">void ADC_Machine_Input_Sample(Analog_Input_t **inputs, uint32_t count, bool singleChannel)</div><div class="ttdoc">Input sampling state handler. </div><div class="ttdef"><b>Definition:</b> <a href="_a_d_c___state_machine_8c_source.html#l00687">ADC_StateMachine.c:687</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga89c4eb6445082c988990fe2be2f441b5"><div class="ttname"><a href="group__command__interpreter.html#ga89c4eb6445082c988990fe2be2f441b5">NUM_LIST_ANALOG_INPUTS_PARAMS</a></div><div class="ttdeci">#define NUM_LIST_ANALOG_INPUTS_PARAMS</div><div class="ttdoc">The number of parameters for the LIST_ANALOG_INPUTS command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00182">Tekdaqc_CommandInterpreter.h:182</a></div></div>
<div class="ttc" id="group__digital__output_html_ga7f6d7f4a8ed42dfa380728cad94dbc28"><div class="ttname"><a href="group__digital__output.html#ga7f6d7f4a8ed42dfa380728cad94dbc28">SetDigitalOutput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t SetDigitalOutput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], uint8_t count)</div><div class="ttdoc">Sets a digital output to the specified state. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00406">Digital_Output.c:406</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaa4e33f1b6e384ab8abcb41c12924896c"><div class="ttname"><a href="group__command__interpreter.html#gaa4e33f1b6e384ab8abcb41c12924896c">PARAMETER_STATE</a></div><div class="ttdeci">#define PARAMETER_STATE</div><div class="ttdoc">String constant definition for the STATE parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00107">Tekdaqc_CommandInterpreter.h:107</a></div></div>
<div class="ttc" id="group__tekdaqc__locator_html_gaf8eaedaeca86f0d5c7af113faebe16a0"><div class="ttname"><a href="group__tekdaqc__locator.html#gaf8eaedaeca86f0d5c7af113faebe16a0">Tekdaqc_GetLocatorIp</a></div><div class="ttdeci">uint32_t Tekdaqc_GetLocatorIp(void)</div><div class="ttdoc">Retrieves the board IP address from the locator packet data. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___locator_8c_source.html#l00341">Tekdaqc_Locator.c:341</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101afa15903947556e5292832afc03d72da8">CHANNEL_RANGE</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00302">Tekdaqc_CommandInterpreter.c:302</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_a417605542fbbdc39d9efb5fbdc15ecce"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#a417605542fbbdc39d9efb5fbdc15ecce">KEY_VALUE_PAIR_FLAG</a></div><div class="ttdeci">#define KEY_VALUE_PAIR_FLAG</div><div class="ttdoc">The character sequence which prefixes a key/value pair. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00070">Tekdaqc_CommandInterpreter.c:70</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gadef3034178d2e2de064a8709350e8f01"><div class="ttname"><a href="group__command__interpreter.html#gadef3034178d2e2de064a8709350e8f01">NUM_COMMANDS</a></div><div class="ttdeci">#define NUM_COMMANDS</div><div class="ttdoc">The total number of commands known by this board. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00119">Tekdaqc_CommandInterpreter.h:119</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gae845277b8fe01a11cfad1732696507d3"><div class="ttname"><a href="group__command__interpreter.html#gae845277b8fe01a11cfad1732696507d3">PARAMETER_OUTPUT</a></div><div class="ttdeci">#define PARAMETER_OUTPUT</div><div class="ttdoc">String constant definition for the OUTPUT parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00101">Tekdaqc_CommandInterpreter.h:101</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaf0d093bb26c186189433bbd8007cf0c0"><div class="ttname"><a href="group__command__interpreter.html#gaf0d093bb26c186189433bbd8007cf0c0">NUM_ADD_ANALOG_INPUT_PARAMS</a></div><div class="ttdeci">#define NUM_ADD_ANALOG_INPUT_PARAMS</div><div class="ttdoc">The number of parameters for the ADD_ANALOG_INPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00206">Tekdaqc_CommandInterpreter.h:206</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_aea1419158fcfc7a488c6ef00d908d404a95427ee9707b4540232a478b58ba2ecd"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404a95427ee9707b4540232a478b58ba2ecd">MULTI_ANALOG_INPUT</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00313">Tekdaqc_CommandInterpreter.c:313</a></div></div>
<div class="ttc" id="group__tekdaqc__calibration_html_ga8aa6dd97a6551e9ca12b12439eec2332"><div class="ttname"><a href="group__tekdaqc__calibration.html#ga8aa6dd97a6551e9ca12b12439eec2332">PerformSystemCalibration</a></div><div class="ttdeci">Tekdaqc_Function_Error_t PerformSystemCalibration(void)</div><div class="ttdoc">Performs a self system calibration, determining offset values and base gain values. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___calibration_8c_source.html#l00117">Tekdaqc_Calibration.c:117</a></div></div>
<div class="ttc" id="group__analog__input_html_ga221c8c5a1bbe659d613fa81a6a834dd9"><div class="ttname"><a href="group__analog__input.html#ga221c8c5a1bbe659d613fa81a6a834dd9">RemoveAnalogInput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t RemoveAnalogInput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], uint8_t count)</div><div class="ttdoc">Removes an analog input from the board&#39;s list. </div><div class="ttdef"><b>Definition:</b> <a href="_analog___input_8c_source.html#l00413">Analog_Input.c:413</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaafcaaef444e34052e8d96c863c90543f"><div class="ttname"><a href="group__command__interpreter.html#gaafcaaef444e34052e8d96c863c90543f">NUM_SET_USER_MAC_PARAMS</a></div><div class="ttdeci">#define NUM_SET_USER_MAC_PARAMS</div><div class="ttdoc">The number of parameters for the SET_USER_MAC command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00374">Tekdaqc_CommandInterpreter.h:374</a></div></div>
<div class="ttc" id="_a_d_s1256___driver_8h_html"><div class="ttname"><a href="_a_d_s1256___driver_8h.html">ADS1256_Driver.h</a></div><div class="ttdoc">Header file for the ADS1256 ADC driver. </div></div>
<div class="ttc" id="_d_o___state_machine_8h_html"><div class="ttname"><a href="_d_o___state_machine_8h.html">DO_StateMachine.h</a></div><div class="ttdoc">Header file for the Tekdaqc digital output state machine. </div></div>
<div class="ttc" id="group__command__interpreter_html_gaf1fc1a31411fef881a2ca2a38d375bda"><div class="ttname"><a href="group__command__interpreter.html#gaf1fc1a31411fef881a2ca2a38d375bda">PARAMETER_INPUT</a></div><div class="ttdeci">#define PARAMETER_INPUT</div><div class="ttdoc">String constant definition for the INPUT parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00065">Tekdaqc_CommandInterpreter.h:65</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga9998ef3c02f0f85f3f984b04ab30663d"><div class="ttname"><a href="group__command__interpreter.html#ga9998ef3c02f0f85f3f984b04ab30663d">NUM_HALT_PARAMS</a></div><div class="ttdeci">#define NUM_HALT_PARAMS</div><div class="ttdoc">The number of parameters for the HALT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00358">Tekdaqc_CommandInterpreter.h:358</a></div></div>
<div class="ttc" id="group__command__state_html_gae7be822d5262fbf48e51ffae98733aec"><div class="ttname"><a href="group__command__state.html#gae7be822d5262fbf48e51ffae98733aec">CommandStateMoveToDigitalOutputSample</a></div><div class="ttdeci">void CommandStateMoveToDigitalOutputSample(void)</div><div class="ttdoc">Move the state machine to digital output sampling. </div><div class="ttdef"><b>Definition:</b> <a href="_command_state_8c_source.html#l00213">CommandState.c:213</a></div></div>
<div class="ttc" id="group__analog__input_html_gacdd326a56de1d837605d610cc638a959"><div class="ttname"><a href="group__analog__input.html#gacdd326a56de1d837605d610cc638a959">CreateAnalogInput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t CreateAnalogInput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], uint8_t count)</div><div class="ttdoc">Creates a new analog input structure and adds it to the board&#39;s list. </div><div class="ttdef"><b>Definition:</b> <a href="_analog___input_8c_source.html#l00267">Analog_Input.c:267</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a34a5f40769d968dc3a990c7f331f9121">ERR_COMMAND_FUNCTION_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00062">Tekdaqc_Error.h:62</a></div></div>
<div class="ttc" id="_analog___input_8h_html"><div class="ttname"><a href="_analog___input_8h.html">Analog_Input.h</a></div><div class="ttdoc">Header file for the Tekdaqc_Input data structure. </div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a56c6700e1684a629dabbbb18f0a9e1eb">CHANNEL_SET</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00303">Tekdaqc_CommandInterpreter.c:303</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gac419882cd49159e3078f1fedfe7f1d9d"><div class="ttname"><a href="group__command__interpreter.html#gac419882cd49159e3078f1fedfe7f1d9d">NUM_READ_ANALOG_INPUT_PARAMS</a></div><div class="ttdeci">#define NUM_READ_ANALOG_INPUT_PARAMS</div><div class="ttdoc">The number of parameters for the READ_ANALOG_INPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00198">Tekdaqc_CommandInterpreter.h:198</a></div></div>
<div class="ttc" id="group__analog__input_html_ga697505715d2411ad856bca3d1e726913"><div class="ttname"><a href="group__analog__input.html#ga697505715d2411ad856bca3d1e726913">GetAnalogInputByNumber</a></div><div class="ttdeci">Analog_Input_t * GetAnalogInputByNumber(uint8_t number)</div><div class="ttdoc">Retrieve the analog input structure corresponding to a physical channel. </div><div class="ttdef"><b>Definition:</b> <a href="_analog___input_8c_source.html#l00458">Analog_Input.c:458</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gafc7b206c3c05fcf1ac21ddd5108f690a"><div class="ttname"><a href="group__command__interpreter.html#gafc7b206c3c05fcf1ac21ddd5108f690a">HALT_PARAMS</a></div><div class="ttdeci">const char * HALT_PARAMS[NUM_HALT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00239">Tekdaqc_CommandInterpreter.c:239</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_a814b15b88a6c05e2c3cae8b1f821f451"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#a814b15b88a6c05e2c3cae8b1f821f451">aInputs</a></div><div class="ttdeci">Analog_Input_t * aInputs[NUM_ANALOG_INPUTS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00274">Tekdaqc_CommandInterpreter.c:274</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga4e0199c558a2061732f2e8a1245cb4a2"><div class="ttname"><a href="group__command__interpreter.html#ga4e0199c558a2061732f2e8a1245cb4a2">NUM_SET_STATIC_IP_PARAMS</a></div><div class="ttdeci">#define NUM_SET_STATIC_IP_PARAMS</div><div class="ttdoc">The number of parameters for the SET_STATIC_IP command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00382">Tekdaqc_CommandInterpreter.h:382</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga80461ab1e8d28de20ba44ff93e90c174"><div class="ttname"><a href="group__command__interpreter.html#ga80461ab1e8d28de20ba44ff93e90c174">CHECK_ANALOG_INPUT_PARAMS</a></div><div class="ttdeci">const char * CHECK_ANALOG_INPUT_PARAMS[NUM_CHECK_ANALOG_INPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00144">Tekdaqc_CommandInterpreter.c:144</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_ga82d499e0314eb5c3bdab515f82be322c"><div class="ttname"><a href="group__tekdaqc__error.html#ga82d499e0314eb5c3bdab515f82be322c">Tekdaqc_FunctionError_ToString</a></div><div class="ttdeci">const char * Tekdaqc_FunctionError_ToString(Tekdaqc_Function_Error_t error)</div><div class="ttdoc">Converts a Tekdaqc_Function_Error_t into a human readable string. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8c_source.html#l00082">Tekdaqc_Error.c:82</a></div></div>
<div class="ttc" id="group__digital__output_html_ga392c891d1dfd4610ea0e1ef67f76872b"><div class="ttname"><a href="group__digital__output.html#ga392c891d1dfd4610ea0e1ef67f76872b">GetDigitalOutputByNumber</a></div><div class="ttdeci">Digital_Output_t * GetDigitalOutputByNumber(uint8_t number)</div><div class="ttdoc">Retrieves the requested digital output. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00394">Digital_Output.c:394</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_a03e63fe115385116dc7c4a1ac39f5a8b"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#a03e63fe115385116dc7c4a1ac39f5a8b">dInputs</a></div><div class="ttdeci">Digital_Input_t * dInputs[NUM_DIGITAL_INPUTS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00279">Tekdaqc_CommandInterpreter.c:279</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga8a32c543f87d40b158c3007b8ab8b525"><div class="ttname"><a href="group__command__interpreter.html#ga8a32c543f87d40b158c3007b8ab8b525">CreateCommandInterpreter</a></div><div class="ttdeci">void CreateCommandInterpreter(void)</div><div class="ttdoc">Instantiates and allocates the command interpreter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l02118">Tekdaqc_CommandInterpreter.c:2118</a></div></div>
<div class="ttc" id="group__tekdaqc__locator_html_gae38557024fc843c693d4b6f2cdb5d097"><div class="ttname"><a href="group__tekdaqc__locator.html#gae38557024fc843c693d4b6f2cdb5d097">Tekdaqc_GetLocatorBoardID</a></div><div class="ttdeci">unsigned char * Tekdaqc_GetLocatorBoardID(void)</div><div class="ttdoc">Retrieves the board ID from the locator packet data. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___locator_8c_source.html#l00331">Tekdaqc_Locator.c:331</a></div></div>
<div class="ttc" id="_tekdaqc___debug_8h_html"><div class="ttname"><a href="_tekdaqc___debug_8h.html">Tekdaqc_Debug.h</a></div><div class="ttdoc">Header file to define precompiler variables for debugging sections of code. </div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8h_html"><div class="ttname"><a href="_tekdaqc___command_interpreter_8h.html">Tekdaqc_CommandInterpreter.h</a></div><div class="ttdoc">Header file for the Tekdaqc_CommandInterpreter algorithm. </div></div>
<div class="ttc" id="group__command__interpreter_html_gaf583eedd117e9397b34163b0ed4791c3"><div class="ttname"><a href="group__command__interpreter.html#gaf583eedd117e9397b34163b0ed4791c3">ADD_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">const char * ADD_DIGITAL_OUTPUT_PARAMS[NUM_ADD_DIGITAL_OUTPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00201">Tekdaqc_CommandInterpreter.c:201</a></div></div>
<div class="ttc" id="struct_tekdaqc___command_interpreter__t_html_a67f8ba6e964bdd849202264bd4969a57"><div class="ttname"><a href="struct_tekdaqc___command_interpreter__t.html#a67f8ba6e964bdd849202264bd4969a57">Tekdaqc_CommandInterpreter_t::buffer_position</a></div><div class="ttdeci">uint16_t buffer_position</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00171">Tekdaqc_CommandInterpreter.h:171</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga4c2b766d3384cd7cb0ed759dab8fc4ac"><div class="ttname"><a href="group__command__interpreter.html#ga4c2b766d3384cd7cb0ed759dab8fc4ac">DISCONNECT_PARAMS</a></div><div class="ttdeci">const char * DISCONNECT_PARAMS[NUM_DISCONNECT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00219">Tekdaqc_CommandInterpreter.c:219</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397a53cb1f7d18c7a7e2f95b7700b4273f9f"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a53cb1f7d18c7a7e2f95b7700b4273f9f">ERR_COMMAND_ADC_INVALID_OPERATION</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00063">Tekdaqc_Error.h:63</a></div></div>
<div class="ttc" id="struct_analog___input__t_html"><div class="ttname"><a href="struct_analog___input__t.html">Analog_Input_t</a></div><div class="ttdoc">Data structure used to store the state and requirements of an analog input to the Tekdaqc...</div><div class="ttdef"><b>Definition:</b> <a href="_analog___input_8h_source.html#l00089">Analog_Input.h:89</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga26930165286ff4adccafca5650b4b4cf"><div class="ttname"><a href="group__command__interpreter.html#ga26930165286ff4adccafca5650b4b4cf">REMOVE_DIGITAL_INPUT_PARAMS</a></div><div class="ttdeci">const char * REMOVE_DIGITAL_INPUT_PARAMS[NUM_REMOVE_DIGITAL_INPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00178">Tekdaqc_CommandInterpreter.c:178</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gadc1cbfe3c96811afe874d8fe8a76b967"><div class="ttname"><a href="group__command__interpreter.html#gadc1cbfe3c96811afe874d8fe8a76b967">PARAMETER_NUMBER</a></div><div class="ttdeci">#define PARAMETER_NUMBER</div><div class="ttdoc">String constant definition for the NUMBER parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00089">Tekdaqc_CommandInterpreter.h:89</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga06548395b7cce1059cd7eff8f5bfb433"><div class="ttname"><a href="group__command__interpreter.html#ga06548395b7cce1059cd7eff8f5bfb433">NUM_CHECK_ANALOG_INPUT_PARAMS</a></div><div class="ttdeci">#define NUM_CHECK_ANALOG_INPUT_PARAMS</div><div class="ttdoc">The number of parameters for the CHECK_ANALOG_INPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00222">Tekdaqc_CommandInterpreter.h:222</a></div></div>
<div class="ttc" id="_tekdaqc___error_8h_html"><div class="ttname"><a href="_tekdaqc___error_8h.html">Tekdaqc_Error.h</a></div><div class="ttdoc">Public definitions for the Tekdaqc error type. </div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6629d1329990ab17b5afb829c7e12f1f">ERR_COMMAND_BAD_PARAM</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00059">Tekdaqc_Error.h:59</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gab349c2970503a44eb4e57436974a2bf9"><div class="ttname"><a href="group__command__interpreter.html#gab349c2970503a44eb4e57436974a2bf9">READ_ADC_REGISTERS_PARAMS</a></div><div class="ttdeci">const char * READ_ADC_REGISTERS_PARAMS[NUM_READ_ADC_REGISTERS_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00120">Tekdaqc_CommandInterpreter.c:120</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga6581408fc45ede8a8c643b4700e4113b"><div class="ttname"><a href="group__command__interpreter.html#ga6581408fc45ede8a8c643b4700e4113b">NUM_NONE_PARAMS</a></div><div class="ttdeci">#define NUM_NONE_PARAMS</div><div class="ttdoc">The number of parameters for the NONE command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00398">Tekdaqc_CommandInterpreter.h:398</a></div></div>
<div class="ttc" id="group__tekdaqc__locator_html_ga502ebd4cceffc0fa3a7abefc7f79b42a"><div class="ttname"><a href="group__tekdaqc__locator.html#ga502ebd4cceffc0fa3a7abefc7f79b42a">Tekdaqc_GetLocatorVersion</a></div><div class="ttdeci">uint32_t Tekdaqc_GetLocatorVersion(void)</div><div class="ttdoc">Retrieves the board firmware version from the locator packet data. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___locator_8c_source.html#l00366">Tekdaqc_Locator.c:366</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_ac2735d4b7f35032961d6e2684fe24101"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101">Channel_List_t</a></div><div class="ttdeci">Channel_List_t</div><div class="ttdoc">Enumeration of the different channel selection types. Defines the possible channel selection set type...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00300">Tekdaqc_CommandInterpreter.c:300</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaf4f7b3cf35167e36d202bb65a02f0b71"><div class="ttname"><a href="group__command__interpreter.html#gaf4f7b3cf35167e36d202bb65a02f0b71">UPGRADE_PARAMS</a></div><div class="ttdeci">const char * UPGRADE_PARAMS[NUM_UPGRADE_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00224">Tekdaqc_CommandInterpreter.c:224</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga507d74a3df649ff693df84ae46e9b696"><div class="ttname"><a href="group__command__interpreter.html#ga507d74a3df649ff693df84ae46e9b696">GetLastFunctionError</a></div><div class="ttdeci">Tekdaqc_Function_Error_t GetLastFunctionError(void)</div><div class="ttdoc">Retrieve the last set function error. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l02176">Tekdaqc_CommandInterpreter.c:2176</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaf97c884c75bad1017220b24ccff04016"><div class="ttname"><a href="group__command__interpreter.html#gaf97c884c75bad1017220b24ccff04016">PARAMETER_GAIN</a></div><div class="ttdeci">#define PARAMETER_GAIN</div><div class="ttdoc">String constant definition for the GAIN parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00077">Tekdaqc_CommandInterpreter.h:77</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga05294e7317989e4fa34c8b51c703fc70"><div class="ttname"><a href="group__command__interpreter.html#ga05294e7317989e4fa34c8b51c703fc70">LIST_ANALOG_INPUTS_PARAMS</a></div><div class="ttdeci">const char * LIST_ANALOG_INPUTS_PARAMS[NUM_LIST_ANALOG_INPUTS_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00115">Tekdaqc_CommandInterpreter.c:115</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_aea1419158fcfc7a488c6ef00d908d404aa6a7b3a3d860f8adbe2b2f35dd41a648"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404aa6a7b3a3d860f8adbe2b2f35dd41a648">MULTI_DIGITAL_INPUT</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00314">Tekdaqc_CommandInterpreter.c:314</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga5a03812b6ac732c91bbca5149d3e14bd"><div class="ttname"><a href="group__command__interpreter.html#ga5a03812b6ac732c91bbca5149d3e14bd">PARAMETER_VALUE</a></div><div class="ttdeci">#define PARAMETER_VALUE</div><div class="ttdoc">String constant definition for the VALUE parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00113">Tekdaqc_CommandInterpreter.h:113</a></div></div>
<div class="ttc" id="group__command__state_html_ga62da533cf3e918233a8245c42959d0e5"><div class="ttname"><a href="group__command__state.html#ga62da533cf3e918233a8245c42959d0e5">CommandStateMoveToGeneralSample</a></div><div class="ttdeci">void CommandStateMoveToGeneralSample(void)</div><div class="ttdoc">Move the state machine to general sampling. </div><div class="ttdef"><b>Definition:</b> <a href="_command_state_8c_source.html#l00224">CommandState.c:224</a></div></div>
<div class="ttc" id="group__board__channel__constants_html_ggab0f30599ceb99e5ba3b2908d8e9bd131a4ecfadabb635f0b5dd33b66498b2d04f"><div class="ttname"><a href="group__board__channel__constants.html#ggab0f30599ceb99e5ba3b2908d8e9bd131a4ecfadabb635f0b5dd33b66498b2d04f">CHANNEL_NOTADDED</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00285">Tekdaqc_BSP.h:285</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga0edc411fe5766dfbe192e22155fb0020"><div class="ttname"><a href="group__command__interpreter.html#ga0edc411fe5766dfbe192e22155fb0020">PARAMETER_RATE</a></div><div class="ttdeci">#define PARAMETER_RATE</div><div class="ttdoc">String constant definition for the RATE parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00071">Tekdaqc_CommandInterpreter.h:71</a></div></div>
<div class="ttc" id="_tekdaqc___calibration_8h_html"><div class="ttname"><a href="_tekdaqc___calibration_8h.html">Tekdaqc_Calibration.h</a></div><div class="ttdoc">Header file for the Tekdaqc&#39;s calibration functions. </div></div>
<div class="ttc" id="group__digital__input_html_ga5b4bb29221f6aafe926340eafcf7f722"><div class="ttname"><a href="group__digital__input.html#ga5b4bb29221f6aafe926340eafcf7f722">CreateDigitalInput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t CreateDigitalInput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], int count)</div><div class="ttdoc">Configures a digital input with the specified parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___input_8c_source.html#l00354">Digital_Input.c:354</a></div></div>
<div class="ttc" id="_a_d_c___state_machine_8h_html"><div class="ttname"><a href="_a_d_c___state_machine_8h.html">ADC_StateMachine.h</a></div><div class="ttdoc">Header file for the ADC state machine. </div></div>
<div class="ttc" id="group__command__interpreter_html_ga9c5c1af739a3a4edde8cdb7af7df1ec5"><div class="ttname"><a href="group__command__interpreter.html#ga9c5c1af739a3a4edde8cdb7af7df1ec5">NUM_ADD_DIGITAL_INPUT_PARAMS</a></div><div class="ttdeci">#define NUM_ADD_DIGITAL_INPUT_PARAMS</div><div class="ttdoc">The number of parameters for the ADD_DIGITAL_INPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00262">Tekdaqc_CommandInterpreter.h:262</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_aab062553184015b4b1b1d7f2280f60ff"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#aab062553184015b4b1b1d7f2280f60ff">RANGE_DELIMETER</a></div><div class="ttdeci">#define RANGE_DELIMETER</div><div class="ttdoc">The character which indicates that a range of channels should be used, delimiting the low and high va...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00077">Tekdaqc_CommandInterpreter.c:77</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_aeb4bcb3edcf6d5ba906e4f48e3315f4e"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#aeb4bcb3edcf6d5ba906e4f48e3315f4e">dOutputs</a></div><div class="ttdeci">Digital_Output_t * dOutputs[NUM_DIGITAL_OUTPUTS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00284">Tekdaqc_CommandInterpreter.c:284</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga436d10e43feb396c9f5e4d3ef5d510f5"><div class="ttname"><a href="group__command__interpreter.html#ga436d10e43feb396c9f5e4d3ef5d510f5">ADD_ANALOG_INPUT_PARAMS</a></div><div class="ttdeci">const char * ADD_ANALOG_INPUT_PARAMS[NUM_ADD_ANALOG_INPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00131">Tekdaqc_CommandInterpreter.c:131</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga1fc6732ec779877a349a53c180c22c29"><div class="ttname"><a href="group__command__interpreter.html#ga1fc6732ec779877a349a53c180c22c29">NUM_SAMPLE_PARAMS</a></div><div class="ttdeci">#define NUM_SAMPLE_PARAMS</div><div class="ttdoc">The number of parameters for the SAMPLE command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00350">Tekdaqc_CommandInterpreter.h:350</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397afa2d8d19a4a4f748558910cd9a18aee1"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397afa2d8d19a4a4f748558910cd9a18aee1">ERR_COMMAND_UNKNOWN_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00066">Tekdaqc_Error.h:66</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397a1944910c8a33fa83ea999c0e83b21add"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a1944910c8a33fa83ea999c0e83b21add">ERR_COMMAND_DI_INVALID_OPERATION</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00064">Tekdaqc_Error.h:64</a></div></div>
<div class="ttc" id="group__command__parser_html_gaab74dfff7eb006955f2aabec581f8d9f"><div class="ttname"><a href="group__command__parser.html#gaab74dfff7eb006955f2aabec581f8d9f">MAX_COMMANDLINE_LENGTH</a></div><div class="ttdeci">#define MAX_COMMANDLINE_LENGTH</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00082">Tekdaqc_BSP.h:82</a></div></div>
<div class="ttc" id="group__do__statemachine_html_ga2314b594125edbaaac497a4466ac478a"><div class="ttname"><a href="group__do__statemachine.html#ga2314b594125edbaaac497a4466ac478a">DO_Machine_Output_Sample</a></div><div class="ttdeci">void DO_Machine_Output_Sample(Digital_Output_t **outputs, uint32_t count, bool singleChannel)</div><div class="ttdoc">Output sampling state handler. </div><div class="ttdef"><b>Definition:</b> <a href="_d_o___state_machine_8c_source.html#l00241">DO_StateMachine.c:241</a></div></div>
<div class="ttc" id="group__digital__input_html_gaf5dbc88e9aa5cee34b35d908a2e61276"><div class="ttname"><a href="group__digital__input.html#gaf5dbc88e9aa5cee34b35d908a2e61276">ListDigitalInputs</a></div><div class="ttdeci">Tekdaqc_Function_Error_t ListDigitalInputs(void)</div><div class="ttdoc">Prints a representation of all the added digital inputs. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___input_8c_source.html#l00309">Digital_Input.c:309</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga37e4457ed0cb0dabb34ffcd740d59ed7"><div class="ttname"><a href="group__command__interpreter.html#ga37e4457ed0cb0dabb34ffcd740d59ed7">LIST_DIGITAL_INPUTS_PARAMS</a></div><div class="ttdeci">const char * LIST_DIGITAL_INPUTS_PARAMS[NUM_LIST_DIGITAL_INPUTS_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00161">Tekdaqc_CommandInterpreter.c:161</a></div></div>
<div class="ttc" id="group__command__state_html_ga517067b49452b8a3e1e87831720b573b"><div class="ttname"><a href="group__command__state.html#ga517067b49452b8a3e1e87831720b573b">CommandStateMoveToAnalogInputSample</a></div><div class="ttdeci">void CommandStateMoveToAnalogInputSample(void)</div><div class="ttdoc">Move the state machine to analog input sampling. </div><div class="ttdef"><b>Definition:</b> <a href="_command_state_8c_source.html#l00191">CommandState.c:191</a></div></div>
<div class="ttc" id="struct_digital___input__t_html"><div class="ttname"><a href="struct_digital___input__t.html">Digital_Input_t</a></div><div class="ttdoc">Data structure used to store the state and requirements of a digital input to the Tekdaqc...</div><div class="ttdef"><b>Definition:</b> <a href="_digital___input_8h_source.html#l00073">Digital_Input.h:73</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_a92a0c7db7d0fa06d4a7b5607b58b8e22"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#a92a0c7db7d0fa06d4a7b5607b58b8e22">ALL_CHANNELS_STRING</a></div><div class="ttdeci">#define ALL_CHANNELS_STRING</div><div class="ttdoc">The keyword string to specify all added channels should be used. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00063">Tekdaqc_CommandInterpreter.c:63</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gafe8d33d42ee3ed4867090180ef38afbd"><div class="ttname"><a href="group__command__interpreter.html#gafe8d33d42ee3ed4867090180ef38afbd">Command_t</a></div><div class="ttdeci">Command_t</div><div class="ttdoc">Enumeration of all commands known by this board. This is an enumeration of all commands known by this...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00135">Tekdaqc_CommandInterpreter.h:135</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga36e8fbb263e5a9243d52f56202b5e3ce"><div class="ttname"><a href="group__command__interpreter.html#ga36e8fbb263e5a9243d52f56202b5e3ce">NUM_SET_RTC_PARAMS</a></div><div class="ttdeci">#define NUM_SET_RTC_PARAMS</div><div class="ttdoc">The number of parameters for the SET_RTC command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00366">Tekdaqc_CommandInterpreter.h:366</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaebf261e1faa9877050475c6a01c2f698"><div class="ttname"><a href="group__command__interpreter.html#gaebf261e1faa9877050475c6a01c2f698">NUM_CLEAR_DIG_OUTPUT_FAULT_PARAMS</a></div><div class="ttdeci">#define NUM_CLEAR_DIG_OUTPUT_FAULT_PARAMS</div><div class="ttdoc">The number of parameters for the CLEAR_DIG_OUTPUT_FAULT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00318">Tekdaqc_CommandInterpreter.h:318</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga19df05d919ecca7a7501b35ae9080a32ad439d1a813dcd3ec1fb1f02ea9c48de6"><div class="ttname"><a href="group__tekdaqc__error.html#gga19df05d919ecca7a7501b35ae9080a32ad439d1a813dcd3ec1fb1f02ea9c48de6">ERR_AIN_INPUT_NOT_FOUND</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00077">Tekdaqc_Error.h:77</a></div></div>
<div class="ttc" id="group__digital__input_html_ga3b0d15fea40d84eaf677d216e1530d89"><div class="ttname"><a href="group__digital__input.html#ga3b0d15fea40d84eaf677d216e1530d89">RemoveDigitalInput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t RemoveDigitalInput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], int count)</div><div class="ttdoc">Removes a digital input, marking it for exclusion from the state machine. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___input_8c_source.html#l00464">Digital_Input.c:464</a></div></div>
<div class="ttc" id="group__data__types_html_gaa8cecfc5c5c054d2875c03e77b7be15d"><div class="ttname"><a href="group__data__types.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a></div><div class="ttdeci">#define TRUE</div><div class="ttdoc">Logical True. </div><div class="ttdef"><b>Definition:</b> <a href="boolean_8h_source.html#l00070">boolean.h:70</a></div></div>
<div class="ttc" id="group__tekdaqc__locator_html_ga573f8960093dc2ab0cc4c88b8f8c6ff9"><div class="ttname"><a href="group__tekdaqc__locator.html#ga573f8960093dc2ab0cc4c88b8f8c6ff9">Tekdaqc_GetLocatorBoardType</a></div><div class="ttdeci">uint8_t Tekdaqc_GetLocatorBoardType(void)</div><div class="ttdoc">Retrieves the board type from the locator packet data. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___locator_8c_source.html#l00320">Tekdaqc_Locator.c:320</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga9bb48c8ce63d89ea1aab20833fbd9691"><div class="ttname"><a href="group__command__interpreter.html#ga9bb48c8ce63d89ea1aab20833fbd9691">REMOVE_ANALOG_INPUT_PARAMS</a></div><div class="ttdeci">const char * REMOVE_ANALOG_INPUT_PARAMS[NUM_REMOVE_ANALOG_INPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00138">Tekdaqc_CommandInterpreter.c:138</a></div></div>
<div class="ttc" id="group__di__statemachine_html_gac2e52e7ee418f5ee8301fbf6baecd207"><div class="ttname"><a href="group__di__statemachine.html#gac2e52e7ee418f5ee8301fbf6baecd207">DI_Machine_Input_Sample</a></div><div class="ttdeci">void DI_Machine_Input_Sample(Digital_Input_t **inputs, uint32_t count, bool singleChannel)</div><div class="ttdoc">Input sampling state handler. </div><div class="ttdef"><b>Definition:</b> <a href="_d_i___state_machine_8c_source.html#l00240">DI_StateMachine.c:240</a></div></div>
<div class="ttc" id="group__command__state_html_ga95ad2a64f10746852d523bed46b0d328"><div class="ttname"><a href="group__command__state.html#ga95ad2a64f10746852d523bed46b0d328">CommandStateMoveToDigitalInputSample</a></div><div class="ttdeci">void CommandStateMoveToDigitalInputSample(void)</div><div class="ttdoc">Move the state machine to digital input sampling. </div><div class="ttdef"><b>Definition:</b> <a href="_command_state_8c_source.html#l00202">CommandState.c:202</a></div></div>
<div class="ttc" id="group__command__state_html_ga7ffd79ad6c6165445ae5f0f29bd92d83"><div class="ttname"><a href="group__command__state.html#ga7ffd79ad6c6165445ae5f0f29bd92d83">HaltTasks</a></div><div class="ttdeci">void HaltTasks(void)</div><div class="ttdoc">Halt all in progress tasks, returning to the idle state. </div><div class="ttdef"><b>Definition:</b> <a href="_command_state_8c_source.html#l00147">CommandState.c:147</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_aea1419158fcfc7a488c6ef00d908d404"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#aea1419158fcfc7a488c6ef00d908d404">Multisampling_t</a></div><div class="ttdeci">Multisampling_t</div><div class="ttdoc">Enumeration of the different multi-channel sampling types. Enumeration of the different multi-channel...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00312">Tekdaqc_CommandInterpreter.c:312</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397a6a0e19c2fb9deb5af84cfea28b072265"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a6a0e19c2fb9deb5af84cfea28b072265">ERR_COMMAND_BAD_COMMAND</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00060">Tekdaqc_Error.h:60</a></div></div>
<div class="ttc" id="group__digital__output_html_ga3ae9f85352ddfe3c29046f9d3b068d64"><div class="ttname"><a href="group__digital__output.html#ga3ae9f85352ddfe3c29046f9d3b068d64">RemoveDigitalOutput</a></div><div class="ttdeci">Tekdaqc_Function_Error_t RemoveDigitalOutput(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], int count)</div><div class="ttdoc">Removes a digital output, marking it for exclusion from the state machine. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8c_source.html#l00345">Digital_Output.c:345</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_a0e6c06793de5eedf6ca83f03ba746cb7"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#a0e6c06793de5eedf6ca83f03ba746cb7">KEY_VALUE_PAIR_DELIMETER</a></div><div class="ttdeci">#define KEY_VALUE_PAIR_DELIMETER</div><div class="ttdoc">The character which separates the key and value in a key/value pair. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00091">Tekdaqc_CommandInterpreter.c:91</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga27977b5ae6f92883015ee0cb83d54617"><div class="ttname"><a href="group__command__interpreter.html#ga27977b5ae6f92883015ee0cb83d54617">SET_STATIC_IP_PARAMS</a></div><div class="ttdeci">const char * SET_STATIC_IP_PARAMS[NUM_SET_STATIC_IP_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00254">Tekdaqc_CommandInterpreter.c:254</a></div></div>
<div class="ttc" id="group__data__types_html_gaa93f0eb578d23995850d61f7d61c55c1"><div class="ttname"><a href="group__data__types.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a></div><div class="ttdeci">#define FALSE</div><div class="ttdoc">Logical False. </div><div class="ttdef"><b>Definition:</b> <a href="boolean_8h_source.html#l00058">boolean.h:58</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga3d5083d6431df96a397de8cfad75d3b4"><div class="ttname"><a href="group__command__interpreter.html#ga3d5083d6431df96a397de8cfad75d3b4">NUM_LIST_DIGITAL_OUTPUTS_PARAMS</a></div><div class="ttdeci">#define NUM_LIST_DIGITAL_OUTPUTS_PARAMS</div><div class="ttdoc">The number of parameters for the LIST_DIGITAL_OUTPUTS command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00278">Tekdaqc_CommandInterpreter.h:278</a></div></div>
<div class="ttc" id="group__telnet__server_html_ga26f786d2e47e4bb5f180d2740eebc957"><div class="ttname"><a href="group__telnet__server.html#ga26f786d2e47e4bb5f180d2740eebc957">TelnetClose</a></div><div class="ttdeci">void TelnetClose(void)</div><div class="ttdoc">This function is called when the the TCP connection should be closed. </div><div class="ttdef"><b>Definition:</b> <a href="_telnet_server_8c_source.html#l00427">TelnetServer.c:427</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gab8e88e0e75930f03474e1ff9e232ef63"><div class="ttname"><a href="group__command__interpreter.html#gab8e88e0e75930f03474e1ff9e232ef63">REMOVE_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">const char * REMOVE_DIGITAL_OUTPUT_PARAMS[NUM_REMOVE_DIGITAL_OUTPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00207">Tekdaqc_CommandInterpreter.c:207</a></div></div>
<div class="ttc" id="group__tekdaqc__calibration_html_gae09f531b1b83f3e80e981f14bfc27261"><div class="ttname"><a href="group__tekdaqc__calibration.html#gae09f531b1b83f3e80e981f14bfc27261">isTekdaqc_CalibrationValid</a></div><div class="ttdeci">bool isTekdaqc_CalibrationValid(void)</div><div class="ttdoc">Determines if the calibration data in the FLASH memory is valid or not. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___calibration_8c_source.html#l00169">Tekdaqc_Calibration.c:169</a></div></div>
<div class="ttc" id="_d_i___state_machine_8h_html"><div class="ttname"><a href="_d_i___state_machine_8h.html">DI_StateMachine.h</a></div><div class="ttdoc">Header file for the digital input state machine. </div></div>
<div class="ttc" id="group__command__interpreter_html_gaac55dd13b66c6ed14773e930596be11e"><div class="ttname"><a href="group__command__interpreter.html#gaac55dd13b66c6ed14773e930596be11e">NUM_SET_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">#define NUM_SET_DIGITAL_OUTPUT_PARAMS</div><div class="ttdoc">The number of parameters for the SET_DIGITAL_OUTPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00286">Tekdaqc_CommandInterpreter.h:286</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gab114f1bb247754ff4bbc705b92f53222"><div class="ttname"><a href="group__command__interpreter.html#gab114f1bb247754ff4bbc705b92f53222">IDENTIFY_PARAMS</a></div><div class="ttdeci">const char * IDENTIFY_PARAMS[NUM_IDENTIFY_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00229">Tekdaqc_CommandInterpreter.c:229</a></div></div>
<div class="ttc" id="group__tekdaqc__calibration_html_ga65885f14ff00d87bd3ca21265e7d26f6"><div class="ttname"><a href="group__tekdaqc__calibration.html#ga65885f14ff00d87bd3ca21265e7d26f6">PerformSystemGainCalibration</a></div><div class="ttdeci">Tekdaqc_Function_Error_t PerformSystemGainCalibration(char keys[][MAX_COMMANDPART_LENGTH], char values[][MAX_COMMANDPART_LENGTH], uint8_t count)</div><div class="ttdoc">Performs a system gain calibration with specified parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___calibration_8c_source.html#l00132">Tekdaqc_Calibration.c:132</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gac7fdbccfbee444562e69bbdc64b3d92d"><div class="ttname"><a href="group__command__interpreter.html#gac7fdbccfbee444562e69bbdc64b3d92d">NUM_REMOVE_ANALOG_INPUT_PARAMS</a></div><div class="ttdeci">#define NUM_REMOVE_ANALOG_INPUT_PARAMS</div><div class="ttdoc">The number of parameters for the REMOVE_ANALOG_INPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00214">Tekdaqc_CommandInterpreter.h:214</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_ga91c51567356a5f53b2d62610fa1bf397"><div class="ttname"><a href="group__tekdaqc__error.html#ga91c51567356a5f53b2d62610fa1bf397">Tekdaqc_Command_Error_t</a></div><div class="ttdeci">Tekdaqc_Command_Error_t</div><div class="ttdoc">Tekdaqc Command error enumeration. Defines the possible error codes returned from a Tekdaqc command h...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00057">Tekdaqc_Error.h:57</a></div></div>
<div class="ttc" id="struct_digital___output__t_html"><div class="ttname"><a href="struct_digital___output__t.html">Digital_Output_t</a></div><div class="ttdoc">Data structure used to store the state and requirements of a digital output of the Tekdaqc...</div><div class="ttdef"><b>Definition:</b> <a href="_digital___output_8h_source.html#l00087">Digital_Output.h:87</a></div></div>
<div class="ttc" id="group__command__state_html_gab0e295861dce43803feb4bf235dedf71"><div class="ttname"><a href="group__command__state.html#gab0e295861dce43803feb4bf235dedf71">isDISampling</a></div><div class="ttdeci">bool isDISampling(void)</div><div class="ttdoc">Accessor function to check the digital input sampling status. </div><div class="ttdef"><b>Definition:</b> <a href="_command_state_8c_source.html#l00277">CommandState.c:277</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga26d009205a856ee4c4c6e6c3b363f188"><div class="ttname"><a href="group__command__interpreter.html#ga26d009205a856ee4c4c6e6c3b363f188">READ_DIGITAL_INPUT_PARAMS</a></div><div class="ttdeci">const char * READ_DIGITAL_INPUT_PARAMS[NUM_READ_DIGITAL_INPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00166">Tekdaqc_CommandInterpreter.c:166</a></div></div>
<div class="ttc" id="_telnet_server_8h_html"><div class="ttname"><a href="_telnet_server_8h.html">TelnetServer.h</a></div><div class="ttdoc">Header file for the Telnet server of the Tekdaqc. </div></div>
<div class="ttc" id="group__command__interpreter_html_ga5ad550260c3e06471bddb5c3a8aaba04"><div class="ttname"><a href="group__command__interpreter.html#ga5ad550260c3e06471bddb5c3a8aaba04">NUM_LIST_DIGITAL_INPUTS_PARAMS</a></div><div class="ttdeci">#define NUM_LIST_DIGITAL_INPUTS_PARAMS</div><div class="ttdoc">The number of parameters for the LIST_DIGITAL_INPUTS command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00246">Tekdaqc_CommandInterpreter.h:246</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_a822883911d1571e6b8b772d62a68cc7f"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#a822883911d1571e6b8b772d62a68cc7f">SET_DELIMETER</a></div><div class="ttdeci">#define SET_DELIMETER</div><div class="ttdoc">The character which indicates that a set of characters are being used, delimiting them...</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00084">Tekdaqc_CommandInterpreter.c:84</a></div></div>
<div class="ttc" id="group__ads1256__driver_html_gacbbff85197a622b07cfb2bf47b57c29b"><div class="ttname"><a href="group__ads1256__driver.html#gacbbff85197a622b07cfb2bf47b57c29b">ADS1256_RegistersToString</a></div><div class="ttdeci">void ADS1256_RegistersToString(void)</div><div class="ttdoc">Print all the local registers to a string. </div><div class="ttdef"><b>Definition:</b> <a href="_a_d_s1256___driver_8c_source.html#l00338">ADS1256_Driver.c:338</a></div></div>
<div class="ttc" id="group__command__state_html_ga7dc77fb2cb66a1b11d987bdc8c75c060"><div class="ttname"><a href="group__command__state.html#ga7dc77fb2cb66a1b11d987bdc8c75c060">isADCSampling</a></div><div class="ttdeci">bool isADCSampling(void)</div><div class="ttdoc">Accessor function to check the analog input sampling status. </div><div class="ttdef"><b>Definition:</b> <a href="_command_state_8c_source.html#l00267">CommandState.c:267</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga012ad2ab047f56ee2f1bbe24441f46d3"><div class="ttname"><a href="group__command__interpreter.html#ga012ad2ab047f56ee2f1bbe24441f46d3">SYSTEM_CAL_PARAMS</a></div><div class="ttdeci">const char * SYSTEM_CAL_PARAMS[NUM_SYSTEM_CAL_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00156">Tekdaqc_CommandInterpreter.c:156</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gae17b8153644216734412b48e52b760d3"><div class="ttname"><a href="group__command__interpreter.html#gae17b8153644216734412b48e52b760d3">Command_AddChar</a></div><div class="ttdeci">void Command_AddChar(const char character)</div><div class="ttdoc">Adds a character to the command parser&#39;s buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l02141">Tekdaqc_CommandInterpreter.c:2141</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga7008aaf205ddd844e0a5affd12a08775"><div class="ttname"><a href="group__command__interpreter.html#ga7008aaf205ddd844e0a5affd12a08775">SAMPLE_PARAMS</a></div><div class="ttdeci">const char * SAMPLE_PARAMS[NUM_SAMPLE_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00234">Tekdaqc_CommandInterpreter.c:234</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga42bcbf56d92ed56e8a88c69e5d4cb4c0"><div class="ttname"><a href="group__command__interpreter.html#ga42bcbf56d92ed56e8a88c69e5d4cb4c0">NUM_UPGRADE_PARAMS</a></div><div class="ttdeci">#define NUM_UPGRADE_PARAMS</div><div class="ttdoc">The number of parameters for the UPGRADE command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00334">Tekdaqc_CommandInterpreter.h:334</a></div></div>
<div class="ttc" id="group__tekdaqc__locator_html_ga03c9656c9876829e12f617d4e4abef04"><div class="ttname"><a href="group__tekdaqc__locator.html#ga03c9656c9876829e12f617d4e4abef04">Tekdaqc_GetLocatorMAC</a></div><div class="ttdeci">unsigned char * Tekdaqc_GetLocatorMAC(void)</div><div class="ttdoc">Retrieves the board MAC address from the locator packet data. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___locator_8c_source.html#l00356">Tekdaqc_Locator.c:356</a></div></div>
<div class="ttc" id="_tekdaqc___command_interpreter_8c_html_ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982"><div class="ttname"><a href="_tekdaqc___command_interpreter_8c.html#ac2735d4b7f35032961d6e2684fe24101a49cd14c9993578300a077e57cbc31982">ALL_CHANNELS</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00304">Tekdaqc_CommandInterpreter.c:304</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gab5824d68d182fb33e2aebc616288f06a"><div class="ttname"><a href="group__command__interpreter.html#gab5824d68d182fb33e2aebc616288f06a">NUM_DISCONNECT_PARAMS</a></div><div class="ttdeci">#define NUM_DISCONNECT_PARAMS</div><div class="ttdoc">The number of parameters for the DISCONNECT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00326">Tekdaqc_CommandInterpreter.h:326</a></div></div>
<div class="ttc" id="struct_tekdaqc___command_interpreter__t_html_a80b2496e0ec37858a3a015b964b11eda"><div class="ttname"><a href="struct_tekdaqc___command_interpreter__t.html#a80b2496e0ec37858a3a015b964b11eda">Tekdaqc_CommandInterpreter_t::command_buffer</a></div><div class="ttdeci">char command_buffer[MAX_COMMANDLINE_LENGTH]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00170">Tekdaqc_CommandInterpreter.h:170</a></div></div>
<div class="ttc" id="group__analog__input_html_ga30736f8a2ceb6a1993055302893efefe"><div class="ttname"><a href="group__analog__input.html#ga30736f8a2ceb6a1993055302893efefe">ListAnalogInputs</a></div><div class="ttdeci">Tekdaqc_Function_Error_t ListAnalogInputs(void)</div><div class="ttdoc">Prints a representation of all the added analog inputs. </div><div class="ttdef"><b>Definition:</b> <a href="_analog___input_8c_source.html#l00183">Analog_Input.c:183</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga4fc716dc88ef0cbdbc503e78eab47df4"><div class="ttname"><a href="group__command__interpreter.html#ga4fc716dc88ef0cbdbc503e78eab47df4">NUM_GET_CALIBRATION_STATUS_PARAMS</a></div><div class="ttdeci">#define NUM_GET_CALIBRATION_STATUS_PARAMS</div><div class="ttdoc">The number of parameters for the GET_CALIBRATION_STATUS command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00390">Tekdaqc_CommandInterpreter.h:390</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gaab1534ae5702e990bfdc0f8c85094df0"><div class="ttname"><a href="group__command__interpreter.html#gaab1534ae5702e990bfdc0f8c85094df0">NUM_REMOVE_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">#define NUM_REMOVE_DIGITAL_OUTPUT_PARAMS</div><div class="ttdoc">The number of parameters for the REMOVE_DIGITAL_OUTPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00310">Tekdaqc_CommandInterpreter.h:310</a></div></div>
<div class="ttc" id="group__command__interpreter_html_ga943938961217e5b466d15306bd5504b9"><div class="ttname"><a href="group__command__interpreter.html#ga943938961217e5b466d15306bd5504b9">PARAMETER_BUFFER</a></div><div class="ttdeci">#define PARAMETER_BUFFER</div><div class="ttdoc">String constant definition for the BUFFER parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00083">Tekdaqc_CommandInterpreter.h:83</a></div></div>
<div class="ttc" id="group__digital__input_html_gadfa62573aaa64c6bdcbb94c164099154"><div class="ttname"><a href="group__digital__input.html#gadfa62573aaa64c6bdcbb94c164099154">GetDigitalInputByNumber</a></div><div class="ttdeci">Digital_Input_t * GetDigitalInputByNumber(uint8_t number)</div><div class="ttdoc">Retrieves the requested digital input. </div><div class="ttdef"><b>Definition:</b> <a href="_digital___input_8c_source.html#l00512">Digital_Input.c:512</a></div></div>
<div class="ttc" id="group__tekdaqc__error_html_gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4"><div class="ttname"><a href="group__tekdaqc__error.html#gga91c51567356a5f53b2d62610fa1bf397a9bd9fd752b72fd344c88500ca53d48d4">ERR_COMMAND_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___error_8h_source.html#l00058">Tekdaqc_Error.h:58</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gac5a3a40f966d23af1d572909c1d8e952"><div class="ttname"><a href="group__command__interpreter.html#gac5a3a40f966d23af1d572909c1d8e952">SET_USER_MAC_PARAMS</a></div><div class="ttdeci">const char * SET_USER_MAC_PARAMS[NUM_SET_USER_MAC_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00249">Tekdaqc_CommandInterpreter.c:249</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gade511743b3ecf569a2e74c1b14291a5b"><div class="ttname"><a href="group__command__interpreter.html#gade511743b3ecf569a2e74c1b14291a5b">SET_DIGITAL_OUTPUT_PARAMS</a></div><div class="ttdeci">const char * SET_DIGITAL_OUTPUT_PARAMS[NUM_SET_DIGITAL_OUTPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00189">Tekdaqc_CommandInterpreter.c:189</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gadb61b1d6d360af240f9a0ef5d83c25cf"><div class="ttname"><a href="group__command__interpreter.html#gadb61b1d6d360af240f9a0ef5d83c25cf">READ_ANALOG_INPUT_PARAMS</a></div><div class="ttdeci">const char * READ_ANALOG_INPUT_PARAMS[NUM_READ_ANALOG_INPUT_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00125">Tekdaqc_CommandInterpreter.c:125</a></div></div>
<div class="ttc" id="_command_state_8h_html"><div class="ttname"><a href="_command_state_8h.html">CommandState.h</a></div><div class="ttdoc">Header file for the command state machine. </div></div>
<div class="ttc" id="group__command__interpreter_html_ga6096182153b5f1ed0b7c7f02337c1782"><div class="ttname"><a href="group__command__interpreter.html#ga6096182153b5f1ed0b7c7f02337c1782">NUM_REMOVE_DIGITAL_INPUT_PARAMS</a></div><div class="ttdeci">#define NUM_REMOVE_DIGITAL_INPUT_PARAMS</div><div class="ttdoc">The number of parameters for the REMOVE_DIGITAL_INPUT command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00270">Tekdaqc_CommandInterpreter.h:270</a></div></div>
<div class="ttc" id="group__command__parser_html_ga6147771b5547853f33eb838895e3d5a2"><div class="ttname"><a href="group__command__parser.html#ga6147771b5547853f33eb838895e3d5a2">MAX_COMMANDPART_LENGTH</a></div><div class="ttdeci">#define MAX_COMMANDPART_LENGTH</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___b_s_p_8h_source.html#l00088">Tekdaqc_BSP.h:88</a></div></div>
<div class="ttc" id="_digital___input_8h_html"><div class="ttname"><a href="_digital___input_8h.html">Digital_Input.h</a></div><div class="ttdoc">Header file for the Digital_Input_t data structure. </div></div>
<div class="ttc" id="group__command__interpreter_html_gab61f2dda81ab965fb510863070474767"><div class="ttname"><a href="group__command__interpreter.html#gab61f2dda81ab965fb510863070474767">NUM_SYSTEM_CAL_PARAMS</a></div><div class="ttdeci">#define NUM_SYSTEM_CAL_PARAMS</div><div class="ttdoc">The number of parameters for the SYSTEM_CAL command. </div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8h_source.html#l00238">Tekdaqc_CommandInterpreter.h:238</a></div></div>
<div class="ttc" id="group__command__interpreter_html_gae6bcf7679336081f08e81ef76a680c81"><div class="ttname"><a href="group__command__interpreter.html#gae6bcf7679336081f08e81ef76a680c81">NONE_PARAMS</a></div><div class="ttdeci">const char * NONE_PARAMS[NUM_NONE_PARAMS]</div><div class="ttdef"><b>Definition:</b> <a href="_tekdaqc___command_interpreter_8c_source.html#l00264">Tekdaqc_CommandInterpreter.c:264</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_2ee1bcc70ffbdd9fa2e6058af4d56b44.html">TekDAQC_Firmware</a></li><li class="navelem"><a class="el" href="dir_487e5c767aeaee42821fd912e2f2cba6.html">src</a></li><li class="navelem"><a class="el" href="_tekdaqc___command_interpreter_8c.html">Tekdaqc_CommandInterpreter.c</a></li>
    <li class="footer">Generated on Mon Jul 28 2014 23:42:39 for Tekdaqc Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
